Re: Yahoo! Groups: Welcome to sed-users. Visit today!
"Afive Ninethreeohthree" <[email protected]>
| Newsgroups | gmane.editors.sed.user |
|---|---|
| Message-ID | <[email protected]> |
Your welcome, personally I am not that good with this stuff, as I am still learning to do rudements. Although I would say that the previous links I posted, about basic shell scripting might help, in particular 'loops'. Glad I could help, a5' p.s. ~maybe 'piping'~ --- In [email protected], Luigi Assom <luigi.assom@...> wrote: > > Thank you Afive too :) > > I was finally able to write this syntax which worked for me: > first I extract url and I save it on a second file: > sed -n -e 's/\(<a[^h]*href="\)\([^"]*\)"\([^>]*>\)/\2/g; p' > /Users/gg4u/prova4.txt > /Users/gg4u/prova5.txt > > then I clean out all others html tag and save it on a third file: > sed -e 's/<[^>]*>//g' /Users/gg4u/prova5.txt > /Users/gg4u/prova6.txt > > A question: > I have several several source files which I want to process in batch, and I > want to save only the final results (without saving intermediate file..) > so from list /Users/.../prova1,2,3,...,6.txt save the results as > /Users/.../provaa,b,c,d,...txt > > Which way could I use to automate ? > I could export list of file to do, but how to use it in batch from the > terminal? > > >