Shorter:
perl -nle '/^\d/ .. /(LA.*)/ && print $1' datafile
Safer:
perl -nle '/^\d/ .. /^\d*\s+(LA.*)/ && print $1' datafile
In reply to Re^4: How to get a value from a file and save in another file
by ikegami
in thread How to get a value from a file and save in another file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |