Search Results

Search: Posts Made By: JimWork
11,558
Posted By JimWork
#!/bin/tcsh foreach x (67402996 67402998) ...
#!/bin/tcsh
foreach x (67402996 67402998)
grep -a $x FINAL2006.dat >> MISSING_RECORDS.dat
end

This *almost* works, but it only processes the first number (correctly! Woot!) and then stops.
...
11,558
Posted By JimWork
Thanks! I have a new problem: my Cygwin...
Thanks!

I have a new problem: my Cygwin install doesn't appear to have csh.exe in bin... How do I get that?
11,558
Posted By JimWork
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...
...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 08:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy