Search Results

Search: Posts Made By: jem8271
2,922
Posted By jem8271
bash, Mac OS 10.5 It's fine, I think...
bash, Mac OS 10.5

It's fine, I think understand the problem now, and I don't need to get this particular code working anyway as I've used the more elegant awk solution.

Thanks for your help.
2,922
Posted By jem8271
Many thanks to both of you for your solutions. ...
Many thanks to both of you for your solutions.

awk '{print ($1==1&&$2<3)?1:0}' $inputfile

Works a treat, and is much simpler - thank you scottn.

The re-worked code you posted gives me many...
2,922
Posted By jem8271
if condition not evaluating as expected
Hi all,

Thanks in advance for your time.

I have a data file like this:

1 7.465753425
2 8.980821918
1 1.717808219
1 6.550684932
0 5.432876712

I wish to write a bash script to check...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 06:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy