[wellylug] Regex, replace stuff in command line help...
David Antliff
david.antliff at gmail.com
Fri Jun 30 07:38:50 NZST 2006
Jo Booth wrote:
> Any ideas for multiple matches per line? I tried manually adding returns
> and it got a few more - but there are a few files to process :)
Well, off the top of my head, you can change the record delimiter so
that a "line" becomes everything between the words "profile" instead of
"\n". That way each record will contain a single username. I can't
remember which variable you have to set in Perl (in BASH it's called IFS).
I'm sure there's More Than One Way To Do It.
--
David.
More information about the wellylug
mailing list