![]() |
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 |
| for loop problem | namishtiwari | Shell Programming and Scripting | 5 | 01-25-2008 12:58 PM |
| loop problem | maskot | Shell Programming and Scripting | 1 | 05-25-2007 04:10 AM |
| Problem with for loop/sed ? | chiru_h | Shell Programming and Scripting | 2 | 08-27-2006 11:55 AM |
| loop Problem | dhananjaysk | Shell Programming and Scripting | 3 | 03-31-2006 01:05 PM |
| problem with while loop | mridula | High Level Programming | 1 | 12-11-2005 11:44 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Problem in For Loop
Hi,
While executing for loop in a shell script , I am getting error. for i in `cat FILE` > do > if [ `cat $i | tr " ' " "\n" | grep ^UNB | cut -f3 -d+ | cut -f1 -d:` -eq WF0000010001 ]; then > `ls $i` >> /gentran/GIS_42/users/FILES/SENDER_ID > fi > done Error :- ksh[3]: WF0000010001: bad number Please help me out why this is giving error. I tried many options but invain. I am using ksh shell. |
|
||||
|
Note: It would be better if you use echo instaed cat. and as per RIPAT use string comparision operator in place of -eq and put the string in "".
Regards, Siba Quote:
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|