in reply to Re^3: How to get a value from a file and save in another file
in thread How to get a value from a file and save in another file
Shorter:
perl -nle '/^\d/ .. /(LA.*)/ && print $1' datafile
Safer:
perl -nle '/^\d/ .. /^\d*\s+(LA.*)/ && print $1' datafile
|
|---|