(Unwound the slice, and used Names as indexes)perl -F"\|" -anlE'%x= %x?%x:(map{$_=>$i++}@F);print "$F[ $x{NAME}]|$F +[$x{ZIP} ]"' junk2.txt
I hope life isn't a big joke, because I don't get it.
-SNL
In reply to Re^3: Better method to cut columns from delimited file
by NetWallah
in thread Better method to cut columns from delimited file
by stevieb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |