Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
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
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:14 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC