perl finding a blank line
Posted on 2006-11-09
I'm using a command to print out records from a file, there is a problem with some of the record that contain a blank line in them which
should not be there.
This command will print out all the records but I'm trying to modify it to print the the records only IF it contains a blank line in it.
perl -ne 'print if /^\S+:\s/../number of tasks=\d+/' file.txt