arco Shaw [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 14, 2000 12:32 AM
> To: [EMAIL PROTECTED]
> Subject: Re: scripting help / question
>
> You might have to be more specific on your goal. find with -exec will be
> able to do certain things on files, and a for loop will
ls -la s* | awk '{print $9}' | sed "s/^./grep -i \'&/g" | sed "s/$/\'
file/g" > srcipt.sh
is really evil looking
steve
-Original Message-
From: Marco Shaw [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 14, 2000 12:32 AM
To: [EMAIL PR
At 08:31 PM 11/13/2000 -0400, you wrote:
>You might have to be more specific on your goal. find with -exec will be
>able to do certain things on files, and a for loop will also be able do
>things to a list.
>
>Marco
k, here goes:
- first program creates a bunch of output like this
##
On Mon, Nov 13, 2000 at 04:32:53PM -0800, Ed Lazor wrote:
| How can I take output from an awk command and run a command on each line?
|
| For example:
|
| ls -la s* | awk '{print $9}'
|
| would create several lines of output and I'd like to do something like grep
| the lines from a file.
The
y, November 13, 2000 8:32 PM
Subject: scripting help / question
> How can I take output from an awk command and run a command on each line?
>
> For example:
>
> ls -la s* | awk '{print $9}'
>
> would create several lines of output and I'd like to do something li
How can I take output from an awk command and run a command on each line?
For example:
ls -la s* | awk '{print $9}'
would create several lines of output and I'd like to do something like grep
the lines from a file.
Any ideas?
Thanks =)
-Ed
___