1

Extracting rows from a text file based on the values of two columns (given ranges)

view story
linux-howto

http://www.unix.com – Hi, I have a tab delimited text file with multiple columns. The second and third columns include numbers that have not been sorted. I want to extract rows where the second column includes a value between -0.01 and 0.01 (including both numbers) and the first third column includes a value between 1 and 5 (including). How do I go about doing that? Thanks! Input: Code: a -0.01 5 b -0.02 3 c 0 3 d 0.005 6 Output: Code: a -0.01 5 c 0 3 (HowTos)