Thursday, September 18, 2014

Delete all rows with column N contains specific numerical entries

To delete all rows from a file that contain in column N numerical entry greater than certain value use awk:

awk '$12>=0.5' file > filenew

This command will remove all rows that have numerical entry in column 12 less than 0.5 

No comments:

Post a Comment