![]() |
|
|
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 |
| foreach loop | ROOZ | Shell Programming and Scripting | 3 | 06-05-2008 04:20 PM |
| using foreach loop | sam4now | Shell Programming and Scripting | 6 | 04-26-2008 12:22 PM |
| Foreach loop | haze21 | Shell Programming and Scripting | 4 | 11-16-2007 03:11 AM |
| foreach folder | eltinator | Shell Programming and Scripting | 7 | 08-13-2007 03:37 AM |
| foreach command ?! | geoquest | UNIX for Dummies Questions & Answers | 5 | 05-20-2002 06:11 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
foreach/grep help!
#!/bin/bash
foreach x (67402996 67402998) { grep -a x FINAL2006.dat >> MISSING_RECORDS.dat } I'm trying to pass a list to the variable x, and then grep for that string in FINAL2006.dat... Final2006.dat is in the same folder as my .sh file. I call this with a .cmd file... At any rate, it doesn't seem to be working. Any thoughts? Thanks! jim |
|
|||||
|
Jim,
Duplicate threads are not allowed here. Please remove one of them: http://www.unix.com/unix-for-dummies...grep-help.html |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|