[Nottingham] Slow bash-ings for file line search

Peter Chang Peter.Chang at nottingham.ac.uk
Tue Apr 5 21:35:58 BST 2005


Martin,

> I'm copying a text file line-by-line and wish to identify certain lines 
> to conditionally modify. (Hence why not sed or grep.)

If it's pattern matching then awk is probably what you need. Or perl or
python...

Regards,
 Peter



This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.




More information about the Nottingham mailing list