{
if ( $1 != 1 || ($2 == 2 && $3 < 15))
{ print $0 }
}
I am using the above script to try to print out certain criteria.
Here is my practice file:
14 2 5
1 3 8
12 2 12
1 9 8
5 2 18
3 3 25
Here is my desired output:
14 2 5
12 2 12
3 3 25
Here is the output I am getting:
14 2 5
12 2 12
5 2 18 this line should not print!!
3 3 25
For some reason the $3 < 15 part of my script is being ignored. I need a little help with this.
Thanks.
if ( $1 != 1 || ($2 == 2 && $3 < 15))
{ print $0 }
}
I am using the above script to try to print out certain criteria.
Here is my practice file:
14 2 5
1 3 8
12 2 12
1 9 8
5 2 18
3 3 25
Here is my desired output:
14 2 5
12 2 12
3 3 25
Here is the output I am getting:
14 2 5
12 2 12
5 2 18 this line should not print!!
3 3 25
For some reason the $3 < 15 part of my script is being ignored. I need a little help with this.
Thanks.