How to print lines that only have number lower than...

Hello guys,

I am a beginner in Unix :wall: and was wondering if anyone could help me.

I need a script that prints lines that only has Z-value lower than equals to (<=) 1.0e-02. Each column is seperated by a tab.

10009.fd    Z-value = 3.62843e-03
10009.fd    Z-value = 9.75489e-01
10010.fd   Z-value = 8.74572e-02
10015.fd    Z-value = 7.29131e-03
10018.fd    Z-value = 9.53183e-02
10029.fd    Z-value = 3.84515e-01
10033.fd    Z-value = 1.25627e-04
10033.fd    Z-value = 2.51254e-04
10033.fd   Z-value = 8.52105e-01
10038.fd    Z-value = 3.96096e-05

Can anyone please help me? I'd really appreciate it. Thank you very much!!

awk -F= '$2 <= 1.0e-02' infile
1 Like
awk -F"\t" '$4<=1.0e-02' tmp
1 Like

Thank you very much guys!