in reply to How to get a value from a file and save in another file
perl -n -e "@_ = $_ =~ m/(LA-\d+-\d+)/g; print qq(@_\n)" file [download]