![]() |
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 |
| Please correct the code | mansa | Shell Programming and Scripting | 10 | 10-29-2008 09:57 AM |
| Count not correct | popeye | Shell Programming and Scripting | 3 | 04-22-2008 12:50 PM |
| Tar-ing the correct directories | new2ss | UNIX for Dummies Questions & Answers | 1 | 11-08-2007 10:15 PM |
| Correct the error plz | Mandab | Shell Programming and Scripting | 2 | 05-11-2007 01:15 PM |
| plz correct this | wannalearn | Shell Programming and Scripting | 8 | 04-26-2007 07:56 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Please correct this
I have input file like this
Input file: ABC|abc_etc_passwd XYZ|XYZ_etc_passwd zXY|XYZ_etc_passwd IJK|test_etc_passwd KLM|test_etc_passwd i want to do following in a loop. grep 'ABC' *abc_etc_passwd* grep 'XYZ' *XYZ_etc_passwd* grep 'ZXY' *ZXY_etc_passwd* i have tried this Code:
for i in $(<inputfile) do grep $i ? done |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|