[Sussex] script help?
Sparky
sparkeh at btinternet.com
Sun Oct 26 18:19:02 UTC 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Try this. Create a script (e.g. list.sh) as follows
- -------
#!/bin/bash
for file in *.ra
do
echo "file://$file"
done
- --------
Then running ./list.sh should generate the list of files in the format you
describe. (Don't forget to chmod u+x list.sh).
Hope this helps,
- -Mark
On Sunday 26 October 2003 5:50 pm, Matthew Macdonald-Wallace wrote:
> All,
>
> 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!
>
> Matt
> --
> +----------------------------------+
>
> |Matthew Macdonald-Wallace |
> |The Truth Will Set you Free |
> |http://www.truthisfreedom.org.uk/ |
>
> +----------------------------------+
> BOFH Excuse #293: You must've hit the wrong any key.
>
>
> _______________________________________________
> Sussex mailing list
> Sussex at mailman.lug.org.uk
> http://mailman.lug.org.uk/mailman/listinfo/sussex
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/nBMgh3+IL7Pf7LYRAgB7AKD/HIqaWYz8j43qW1oTrTwTIe5++gCfXpcm
1lhrZ7eU5scM1nykWKg0T3Y=
=Q0EX
-----END PGP SIGNATURE-----
More information about the Sussex
mailing list