![]() |
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 |
| pstat_getdisk() call doesn’t work properly in HPUX 11.31 (11i V3) | sandiworld | HP-UX | 2 | 10-25-2007 10:39 AM |
| my case statement doesn't work.. | sureshy | UNIX for Dummies Questions & Answers | 7 | 10-25-2002 02:25 PM |
| unmount doesn't work | DISTURBED | UNIX for Dummies Questions & Answers | 2 | 07-04-2002 06:14 PM |
| Repquota doesn't work as Cronjob?!? | b416 | UNIX for Dummies Questions & Answers | 1 | 04-14-2002 08:44 PM |
| why doesn't this work????? | token | High Level Programming | 1 | 09-20-2001 10:08 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
grep doesn't work within shell script?
I am trying to run the following code from a script file but it complains that syntax of (both instances of) grep is wrong.
When I copy and paste it to the terminal, it is OK. Any idea what the problem might be? set i = `grep -c #define flags.h` while ($i>20) @ i-- my func (`cat flags.h | grep #define |sed -n '$i{p;q;}' `) end Thanks, Baris |
|
||||
|
Yes, that is the solution. Thanks a lot.
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|