I've many files in a directories structure. I want to extract some string (namely urls) by using a regexp, from those files.
I've tried this :
find . -path "alder/ * / * .html" -print | xargs sed -n "/http://[^'"]/p" > urls.txt
find . -path "*alder/ * / * .html" -print | xargs sed -n "/http:\/\/[^'\"]*/p" > urls.txt
... but it does not work as expected. The 'find'find part works ok, the 'xargs'xargs one, ok but the 'sed'sed one, no. All I get in urls.txt is the concatenation of all files.
Tricky. I'd be grateful for any help.
MC