Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Simpler Version' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Simpler Version
Authored by: tamás on Oct 06, '04 03:33:58PM

To follow up on the recommended use of -e and to remove the tabs before the protocol (file, http, rtsp) in the resulting text file, this works:


#!/bin/sh

grep "<key>Location</key>" "$HOME/Music/iTunes/iTunes Music Library.xml" \
| sed -e 's/<key>Location<\/key><string>//g' -e 's/<\/string>//g' \
-e 's/%20/ /g' -e s/^[^fhr]*//g | sort > $HOME/Desktop/iTunes.txt


[ Reply to This | # ]