Hi,
i have a problem on my last step ...
I have a file :
fghfgh 45 45 100
hjuhju 90 45 90
and i want to test the field to rewrite or not another field :
if field2 = 45  and field3 = 45 then field4 = field4 - 10
if field2 = 45  and field3 = 90 then field4 = field4 - 5
if field2 = 90  and field3 = 45 then field4 = field4 - 5

I don't know if it's possible in bash ? Maybe some language are useful for
the things i want to do ...

Thanks a lot for your help

-- 
View this message in context: 
http://www.nabble.com/test-fields-in-bash-tp21669302p21669302.html
Sent from the Gnu - Bash mailing list archive at Nabble.com.



Reply via email to