posted on 10:28 AM on Thursday 15 August 2013
You can use the following awk snippet to filter the lines of a text file by a certain condition:
cat some_file | awk '{ if($1>1) print $0 }'
The above snippet prints out the line in the text file is the first column has a numeric value greater than one.
See http://stackoverflow.com/questions/8734351/using-awk-to-filter-out-column-with-numerical-ranges for more details.
Why me (12:54 PM on Saturday 17 August 2013)
The family having yogurt cones (07:25 PM on Sunday 11 August 2013)
Redirecting within a bash script (09:44 AM on Wednesday 03 July 2013)
Find files in debian packages (07:58 AM on Monday 30 September 2013)
Replicating user accounts on linux (08:01 AM on Monday 01 September 2014)
Using awk to remove genotypes from a VCF file (08:28 AM on Friday 19 September 2014)