![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Command display output on console and simultaneously save the command and its output | satimis | UNIX for Dummies Questions & Answers | 7 | 01-25-2009 08:27 PM |
| Expect - Interact output hangs when large output | natedog | Shell Programming and Scripting | 0 | 08-27-2008 12:21 PM |
| how to make a line BLINKING in output and also how to increase font size in output | mail2sant | Shell Programming and Scripting | 3 | 04-14-2008 08:30 AM |
| Why I don't get any output? | Sharmin | High Level Programming | 6 | 09-17-2006 01:34 PM |
| ps output | Shobhit | UNIX for Advanced & Expert Users | 2 | 03-10-2002 09:45 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Need help on getting the output
Hi,
I'm very new to unix.. so i need help on getting the following output.. I ve to take two values from a parm file.. then update one of those values by adding 1 to it.. and finally concatenate both the values to get the output.. My code is : awk -F"=" 'NR<3 {print $2}' filename.parm | while read RUN_ID ver_num do echo "$RUN_ID" "$ver_num" RUN_ID=`expr "$RUN_ID" + 1` echo $RUN_ID OUT_RUN_ID="$ver_num$RUN_ID" echo $OUT_RUN_ID done I get RUN_ID and ver_num as 0 and 7.0 from the parm file.. I need my output to be 7.01 after final concatenation... But i get my output as: 1 1 7.0 expr: 0402-046 A specified operator requires numeric parameters. Kindly help me on this.... |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|