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

Click here to return to the '.webloc URL extraction' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
.webloc URL extraction
Authored by: sjk on Aug 01, '04 10:48:06PM

Did that to strip off the one random character prepended to "http://..." that 99% of my .webloc resource files have when I've run 'em thru strings and was too lazy to write the one-liner to handle the 1% exception that don't. I'll fix it later ...

[ Reply to This | # ]
.webloc URL extraction
Authored by: sjk on Aug 01, '04 11:37:55PM
First revision:

strings ${1}.webloc/rsrc | grep http | sed '/^.http/s//http/' | head -1

Generalize for non-http/https URL schemes.
Optimize to eliminate grep and head.

[ Reply to This | # ]