VoiDeR
06-04-2005, 01:18 AM
Im trying to write a script (perl or bash doesnt matter) that will get the file location from xmms-info. Heres what i have so far
cat /tmp/xmms-info_voider.0 | grep File: | sed -e 's/.* //'
and i get the output
/mnt/storage/music/ARTIST/ALBUM/SONG.mp3
I need to get it down to /mnt/storage/music/ARTIST/ALBUM/
Im sure that all i need to do is pipe the output from the first command through sed again but im not very good with the sed command. I tried using perl but im still learning it.
VoiDeR
cat /tmp/xmms-info_voider.0 | grep File: | sed -e 's/.* //'
and i get the output
/mnt/storage/music/ARTIST/ALBUM/SONG.mp3
I need to get it down to /mnt/storage/music/ARTIST/ALBUM/
Im sure that all i need to do is pipe the output from the first command through sed again but im not very good with the sed command. I tried using perl but im still learning it.
VoiDeR