[Sussex] script help?
Steve Dobson
steve at krasnegar.demon.co.uk
Sun Oct 26 18:22:08 UTC 2003
Matt
On Sun, Oct 26, 2003 at 05:50:38PM +0000, Matthew Macdonald-Wallace wrote:
> I'm trying to index my real audio collection into a playlist for a
> friend, but it seems to eed the "file://" on the front of the file name,
> so
>
> ls *.ra >> playlist.ram
>
> won't work.
>
> I've tried
>
> echo "file://`ls *.ra`" >> playlist.ram
>
> but that didn't seem to work either. I think that this week has shown
> that my knowledge of linux is not where I thought it was!
>
> if any one's able to help, that would be great!
I'm assuming that every file needs to be pre-fixed with "file://"
then this should do if for you:
ls *.ra | sed -e 's.^.file://.'
Steve
--
Debian Tip of the E-Mail:
Debian Hint #1: You can report a bug in a package with the 'reportbug'
command, which is available in the reportbug package.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mailman.lug.org.uk/pipermail/sussex/attachments/20031026/a0a82168/attachment.pgp
More information about the Sussex
mailing list