[ Date Index ][
Thread Index ]
[ <= Previous by date /
thread ]
[ Next by date /
thread => ]
On Mon, 2 Dec 2002, Jonathan Melhuish wrote:
Viola!
What, not up to scratch on the fiddle?
It runs without errors with *.html - it just doesn't do
ls *.html | while read file ; do whatever done (unless of course you want the greater power of Perl, python, etc)
sed -e 's/[control-set]*[\/control-set]/[comment]control removed from here[\/comment]/g' login.html
A markup-aware parser would do that more reliably.
Which is obviously supposed to only remove the stuff between those tags, not everything!
Regexps are greedy by default. Look up the difference between .* and .*? in anything perl-ish.
I may well have to invest in a copy sometime, although I doubt I'd find time to read it at the mo, life's suddenly got too hectic :-(
You'll have more time if you make good use of labour-saving tools:-) -- Nick Kew -- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe.