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

Click here to return to the 'Collect RSS feed URLS from Mail ' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Collect RSS feed URLS from Mail
Authored by: dilvish1984 on Jul 30, '12 02:13:02PM

In the first grep portion of your command, you search for the string "Feed" to find the URL key/value pair in the Info.plist files... this is a problem if any other strings in the files contain the word "Feed" (in my case, one of my feeds was named "The ... feed", so your command failed on that item). To be more universally applicable, you should search on the entire key you are looking for from the Info.plist file, which is actually "RSSFeedURLString" (at least in my version of Mail).

So your command should read:

find . -name "Info.plist" -exec grep -A 1 RSSFeedURLString {} \; | grep string | sed 's/^[^>]*>//' | sed 's/<[^>]*>$//'

[ Reply to This | # ]