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


Click here to return to the 'Works now without DeRez' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Works now without DeRez
Authored by: sjk on Jul 30, '04 09:47:28PM
I've been using this:

strings site.webloc/rsrc | grep http | sed 's/^.//' | head -1



[ Reply to This | # ]
Works now without DeRez
Authored by: juanfc on Jul 31, '04 09:19:34AM

That eats the 'h' from the 'http://....' leaving 'ttp://..'

:(

---
---
juan



[ Reply to This | # ]
Works now without DeRez
Authored by: juanfc on Jul 31, '04 09:24:44AM
Why

| sed 's/^.//'
drop it out and it ought to work better:

strings $1.webloc/rsrc | grep http | head -1

---
---
juan

[ Reply to This | # ]

.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

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

[ Reply to This | # ]