|
|
| "be consistent" | |
| PerlMonks |
Answer: What is the simplest way to print a field, as in $3 does in awk |
| ( #120753=categorized answer: print w/ replies, xml ) | Need Help?? |
|
Q&A > strings > What is the simplest way to print a field, as in $3 does in awk contributed by jmcnamara
Use the -a switch to autosplit to @F.
or perl -lne 'print if /localhost/' /etc/hosts -- John.
|
|
||||||||||||||||||