Hello, i was trying to write a script that will list the contents of a directory in a file, but i need to add some prefix and suffix stuff to the listed files.
I want something like this:
<url='filname1.mp3'/>
<url='filname2.mp3'/>
....
<url='filenamexx.mp3'/>
so i thought about
Code:
Code:
echo -e "<url='$(ls -1 *.mp3)'/>"
but all i get is this:
<url='filename1.mp3
...
filenamexx.mp3'/>
Any ideas?