Re: scripting help / question

2000-11-14 Thread Michael R. Jinks
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

RE: scripting help / question

2000-11-14 Thread Stephen_Reilly
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

Re: scripting help / question

2000-11-13 Thread Ed Lazor
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 ##

Re: scripting help / question

2000-11-13 Thread Cameron Simpson
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

Re: scripting help / question

2000-11-13 Thread Marco Shaw
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

scripting help / question

2000-11-13 Thread Ed Lazor
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 ___