bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

test fields in bash


From: BooBz
Subject: test fields in bash
Date: Mon, 26 Jan 2009 09:09:19 -0800 (PST)

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

[Prev in Thread] Current Thread [Next in Thread]