Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: building m3u-playlists from bash in unix
From: Alexandre Belloni (abelloni_at_nerim.net)
Date: 2003-10-02


On Thu, Oct 02, 2003 at 10:12:01AM +0200, Gajdos_at_metatem.net wrote :
> You can pipe it through 'sed' - it's got a nice search/replace function:
> find ~/Music/ -type f -name \*.mp3 | sed 's/Users\/svante\/Music/A-C/' >playlist.m3u
>
> (the '/' acts as a separator in 's/search-for/replace-with/', so it has to
> be escaped with '\' in the actual search string.)

instead of escaping '/', you could use sed -e
's#/Users/svante/Music#A-C#'

-- 
Alexandre Belloni
AE-UTBM: http://ae.utbm.fr -         - Lolut: http://lolut.utbm.info
Key fingerprint = A7C6 7CD4 4328 59D1 79FD  B8BB 945F 4DD5 B634 89BD


  • application/pgp-signature attachment: stored



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa