Re: first of misc questions....

2007-04-26 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Irsla wrote: Hi, On 4/25/07, Matthew Seaman [EMAIL PROTECTED] wrote: find . -type f \( -mtime 6 -o -mtime 29 \) -print0 | xargs -0 vi what about the -exec option of find ? I always wonder why people don't use it. find . -type f \(

Re: first of misc questions....

2007-04-26 Thread Garrett Cooper
Gary Kline wrote: On Wed, Apr 25, 2007 at 08:49:56AM +0100, Matthew Seaman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Gary Kline wrote: Guys, This is an awk-type question. Hopefully a one-liner. If I need to use #!/usr/bin/awk and a BEGIN/END (or

Re: first of misc questions....

2007-04-26 Thread Garrett Cooper
Matthew Seaman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Irsla wrote: Hi, On 4/25/07, Matthew Seaman [EMAIL PROTECTED] wrote: find . -type f \( -mtime 6 -o -mtime 29 \) -print0 | xargs -0 vi what about the -exec option of find ? I always wonder why people don't use it.

Re: first of misc questions....

2007-04-26 Thread Garrett Cooper
Gary Kline wrote: On Wed, Apr 25, 2007 at 06:21:52AM -0500, Derek Ragona wrote: At 02:29 AM 4/25/2007, Gary Kline wrote: Guys, This is an awk-type question. Hopefully a one-liner. If I need to use #!/usr/bin/awk and a BEGIN/END (or whatever it is), that's okay...

Re: first of misc questions....

2007-04-26 Thread Gary Kline
On Thu, Apr 26, 2007 at 03:15:16AM -0700, Garrett Cooper wrote: Gary Kline wrote: [[ ... ]] Or my favorite structure (bourne shell style).. for i in `ls -l | awk '{if ($6 == Apr $7 == 19 || $6 == Mar $7 == 26 ) print $9}'`; do vi $i; done Could you provide examples of what

first of misc questions....

2007-04-25 Thread Gary Kline
Guys, This is an awk-type question. Hopefully a one-liner. If I need to use #!/usr/bin/awk and a BEGIN/END (or whatever it is), that's okay... I want to do an ls -l in a /home/kline/directory and find and edit files that are dated (let's say)

Re: first of misc questions....

2007-04-25 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Gary Kline wrote: Guys, This is an awk-type question. Hopefully a one-liner. If I need to use #!/usr/bin/awk and a BEGIN/END (or whatever it is), that's okay... I want to do an ls -l in a

Re: first of misc questions....

2007-04-25 Thread Derek Ragona
At 02:29 AM 4/25/2007, Gary Kline wrote: Guys, This is an awk-type question. Hopefully a one-liner. If I need to use #!/usr/bin/awk and a BEGIN/END (or whatever it is), that's okay... I want to do an ls -l in a /home/kline/directory and find and

Re: first of misc questions....

2007-04-25 Thread Gary Kline
On Wed, Apr 25, 2007 at 08:49:56AM +0100, Matthew Seaman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Gary Kline wrote: Guys, This is an awk-type question. Hopefully a one-liner. If I need to use #!/usr/bin/awk and a BEGIN/END (or whatever it is),

Re: first of misc questions....

2007-04-25 Thread Gary Kline
On Wed, Apr 25, 2007 at 06:21:52AM -0500, Derek Ragona wrote: At 02:29 AM 4/25/2007, Gary Kline wrote: Guys, This is an awk-type question. Hopefully a one-liner. If I need to use #!/usr/bin/awk and a BEGIN/END (or whatever it is), that's okay...

Re: first of misc questions....

2007-04-25 Thread Irsla
Hi, On 4/25/07, Matthew Seaman [EMAIL PROTECTED] wrote: find . -type f \( -mtime 6 -o -mtime 29 \) -print0 | xargs -0 vi what about the -exec option of find ? I always wonder why people don't use it. find . -type f \( -mtime 6 -o -mtime 29 \) -exec vi {} \; '{} = is the filename find

Re: first of misc questions....

2007-04-25 Thread Thomas Dickey
On Wed, Apr 25, 2007 at 10:31:45PM +0200, Irsla wrote: On 4/25/07, Matthew Seaman [EMAIL PROTECTED] wrote: find . -type f \( -mtime 6 -o -mtime 29 \) -print0 | xargs -0 vi what about the -exec option of find ? I always wonder why people don't use it. it's simpler but not necessarily

Re: first of misc questions....

2007-04-25 Thread Bill Campbell
On Wed, Apr 25, 2007, Thomas Dickey wrote: On Wed, Apr 25, 2007 at 10:31:45PM +0200, Irsla wrote: On 4/25/07, Matthew Seaman [EMAIL PROTECTED] wrote: find . -type f \( -mtime 6 -o -mtime 29 \) -print0 | xargs -0 vi what about the -exec option of find ? I always wonder why people don't

Re: first of misc questions....

2007-04-25 Thread Gary Kline
On Wed, Apr 25, 2007 at 10:31:45PM +0200, Irsla wrote: Hi, On 4/25/07, Matthew Seaman [EMAIL PROTECTED] wrote: find . -type f \( -mtime 6 -o -mtime 29 \) -print0 | xargs -0 vi what about the -exec option of find ? I always wonder why people don't use it. find . -type f \(

Re: first of misc questions....

2007-04-25 Thread RW
On Wed, 25 Apr 2007 14:53:26 -0700 Bill Campbell [EMAIL PROTECTED] wrote: On Wed, Apr 25, 2007, Thomas Dickey wrote: On Wed, Apr 25, 2007 at 10:31:45PM +0200, Irsla wrote: On 4/25/07, Matthew Seaman [EMAIL PROTECTED] wrote: find . -type f \( -mtime 6 -o -mtime 29 \) -print0 | xargs -0