![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| reverse an integer | ali560045 | Shell Programming and Scripting | 4 | 05-20-2008 03:15 AM |
| jar command not being recognized | orahi001 | UNIX for Dummies Questions & Answers | 1 | 05-06-2008 10:29 AM |
| awk field not recognized in backquotes | voa2mp3 | UNIX for Dummies Questions & Answers | 4 | 10-07-2007 05:40 PM |
| Illegal User Id and User name is not recognized | mykvalentin | AIX | 1 | 08-23-2006 02:59 AM |
| I am not being recognized | Help | Forum Support Area for Unregistered Users & Account Problems | 0 | 01-10-2006 04:30 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Argument not recognized as integer
I need to accept a number of arguments at command line and print it in reverse order
i use eval `echo x=$1` to capture the argument #! /bin/sh counter=0 while [ $# -ne 0 ] do eval `echo x=$1` arg$counter=$x counter=`expr $counter + 1` shift done but the error keeps telling me counter cannot increment, saying it is not numeric....????? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|