Sukrit wrote:

> While waiting for your reply, my goals changed a bit. i got some sort
> of worm (redlof if you must know) on my windows machine (with some
> 11000 files affected). It tags to the end of every html file, so i
> didn't want chomping of last 12 lines of files that hadn't got it :)
> But i must say this brevity is the soul of wit and you guys sure are
> witty (it'll take me a while to understand your codes!).

In that case, you can do it with a regualr expression, assuming that the text tagged 
on is always the same.  You would have to look for the first line of the garbage, then 
stop copying, although perhaps caching the discarded lines while scanning through, 
just in case there was a line that matched only by coincidence.

Joseph


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to