in reply to Re: split (grep)
in thread split (grep)
I understand why the hash-based solution makes more sense for performance. Especially in a "fancy" solution. I guess I just want to be able to split on the grep statement as an argument if I needed to... If I can...
This started out as a one liner "brute force" grep replacement in case I needed more than a single or just a few members of the first list...
perl -ne 'next if(!/tom/ && !/steve/) ; printf("%10s %5s",(split/;/)[0 +,1]);' list.txt tom 54 steve 56
Thank you for the input
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: split (grep)
by tbone654 (Beadle) on Oct 24, 2014 at 18:33 UTC |