View Single Post
Old Sep 7th, 2004, 10:49 AM   #1
keenlearner
Newbie
 
Join Date: Sep 2004
Posts: 13
Rep Power: 0 keenlearner is on a distinguished road
hi!

how can i store the output of awk command in a script..
for eg:

in TRY.sh

awk '{ printf "%d", $1 }' filename
var=$1

i want something of this sort...
but this particular thing does'nt work..
i mean if the $1 value is 50 than i am not able to store it in a different variable
for further calculations..

so pls help me out...

TAKE CARE
Regards
Keen Learner
keenlearner is offline   Reply With Quote