Feb 19, 2008 #1 S shiv_emf Advanced Member level 2 Joined Aug 31, 2005 Messages 605 Helped 22 Reputation 44 Reaction score 6 Trophy points 1,298 Activity points 4,106 Hi How to add two floating number in schell script ? 1.2 + 1.3 thanks
Feb 21, 2008 #2 U useless_skew Member level 3 Joined Nov 19, 2007 Messages 63 Helped 16 Reputation 32 Reaction score 10 Trophy points 1,288 Activity points 1,634 set result=`echo 3.2 2.1 + p | dc` echo $result This will give the result 5.3 Mind the quotes - ( ` ` is not ' ' )
set result=`echo 3.2 2.1 + p | dc` echo $result This will give the result 5.3 Mind the quotes - ( ` ` is not ' ' )
Feb 21, 2008 #3 S shiv_emf Advanced Member level 2 Joined Aug 31, 2005 Messages 605 Helped 22 Reputation 44 Reaction score 6 Trophy points 1,298 Activity points 4,106 thanks! Do u know awk, sed and zgrep. i was searching for scripts . usage....
Feb 21, 2008 #4 U useless_skew Member level 3 Joined Nov 19, 2007 Messages 63 Helped 16 Reputation 32 Reaction score 10 Trophy points 1,288 Activity points 1,634 shiv_emf said: thanks! Do u know awk, sed and zgrep. i was searching for scripts . usage.... Click to expand... Still a novice. Awk and sed one-liners will be really helpful when working with the shell. For scripting we can stick to either Perl or Tcl.
shiv_emf said: thanks! Do u know awk, sed and zgrep. i was searching for scripts . usage.... Click to expand... Still a novice. Awk and sed one-liners will be really helpful when working with the shell. For scripting we can stick to either Perl or Tcl.