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
In reply to Re^2: split (grep)
by tbone654
in thread split (grep)
by tbone654
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |