are you talking about something like this?
for i in `grep -il order *.sql`; do
echo $i;
done
Christopher Gordon wrote:
>I was having trouble using the results from grep in a for loop. I was
>doing
>
>grep -il order *.sql | for fname ...;do vi $fname; done
>
>I tried various different things, and used several man pages. I
>finally came up with xargs, but still couldn't quite get that to work
>with my for loop.
>
>Any insight (whether using xargs or not) would be greatly appreciated.
>
>Thanks
>
>Chris
>
>-----------------------------------------------------------------
>To get off this list, send email to [EMAIL PROTECTED]
>with Subject: unsubscribe
>-----------------------------------------------------------------
>
>
-----------------------------------------------------------------
To get off this list, send email to [EMAIL PROTECTED]
with Subject: unsubscribe
-----------------------------------------------------------------