I have a file with something like this:
sda 204.98 0.00 104947.26 0 210944
sda 205.50 0.00 104458.00 0 208916
sda 212.50 0.00 108800.00 0 217600
sda 225.00 0.00 114698.00 0 229396
sda 207.00 0.00 105728.00 0 211456
sda 187.00 0.00 94988.00 0 189976
sda 373.50 3704.00 2248.00 7408 4496
sda 419.50 4152.00 2508.00 8304 5016
sda 390.50 3696.00 2506.00 7392 5012
And I need with a bash script to delete all the rows like the first three, where the third and fifth columns contains zero values, or in alternative, where the last column has high values (more than 5 digits), in order to obtain:
sda 373.50 3704.00 2248.00 7408 4496
sda 419.50 4152.00 2508.00 8304 5016
sda 390.50 3696.00 2506.00 7392 5012
I've tried with awk '($6 < .....)' but has no effect.
How can I do that?