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 exam

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 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. fi

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 whate

Re: first of misc questions....

2007-04-25 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

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 \) -

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 . -

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

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

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 fin

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 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 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/ and find and edit fi

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 /home/klin

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/ and find and edit files that are dated (let's say) Apr 19 or Ma