![]() |
|
|
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 |
| How to get the value in last command line argument??? | amit_oddey21 | Shell Programming and Scripting | 4 | 05-28-2008 08:40 AM |
| passing a command line argument | rudoraj | Shell Programming and Scripting | 8 | 06-14-2007 12:06 AM |
| array as command line argument !!!! | spandu | UNIX for Dummies Questions & Answers | 2 | 02-21-2006 01:33 PM |
| command line argument parsing | rmjoe | UNIX for Dummies Questions & Answers | 1 | 07-28-2005 04:39 PM |
| Passing the command line argument in a variable | rkumar28 | Shell Programming and Scripting | 1 | 05-26-2004 04:02 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
assign a command line argument and a unix command to awk variables
Hi ,
I have a piece of code ...wherein I need to assign the following ... 1) A command line argument to a variable e.g origCount=ARGV[0] 2) A unix command to a variable e.g result=`wc -l testFile.txt` in my awk shell script When I do this : print "origCount" origCount --> I get the output as origCountawk and I get a syntax error for 2) Can you please help me with both Thanks SD Last edited by jim mcnamara; 08-08-2008 at 08:23 AM.. Reason: Closed:homework |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|