[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SLUG] Calling all Regex champions



Steven downing wrote:
> Having moved all my mp3s, I need to update my XMMS playlists,
> BUT there are a couple which have been updated already.
> So, I want to match /usr/local/mp3/<whatever>
> BUT NOT /usr/local/mp3/mp3/<whatever>
> 
> Yes, I've moved them all from /usr/local/mp3 to
> /usr/local/mp3/mp3     so I need to add that extra directory
> into the path in all the playlist files.

cat playlist.old | sed -e 's#local/mp3/mp3#local/mp3#' -e
's#local/mp3#local/mp3/mp3#' > playlist.new

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug