awk print

2005-02-23 Thread David Bear
I'm using awk to parse a directory listing. I was hoping there is a way to tell awk to print from $2 - to the end of the columns available. find ./ -name '*stuff' | awk '{FS="/" print $3---'} the $3-- I want to mean -- print from col 3 to the end. Any awk pros? -- David Bear phone: 480-965-8

Re: awk print

2005-02-23 Thread David Bear
On Wed, Feb 23, 2005 at 11:19:26PM +0100, Roland Smith wrote: > On Wed, Feb 23, 2005 at 02:40:10PM -0700, David Bear wrote: > > I'm using awk to parse a directory listing. I was hoping there is a > > way to tell awk to print from $2 - to the end of the columns > > available. > > > > find ./ -name

Re: awk print

2005-02-23 Thread Mark Frank
* On Wed, Feb 23, 2005 at 07:36:05PM -0700 David Bear wrote: > On Wed, Feb 23, 2005 at 11:19:26PM +0100, Roland Smith wrote: > > On Wed, Feb 23, 2005 at 02:40:10PM -0700, David Bear wrote: > > > I'm using awk to parse a directory listing. I was hoping there is a > > > way to tell awk to print from

Re: awk print

2005-02-24 Thread Soheil Hassas Yeganeh
You can set $[1..n] to "" and then print find ./ -name "stuff" | awk '{ $1=""; $2=""; print} On Wed, 23 Feb 2005 22:41:32 -0500, Mark Frank <[EMAIL PROTECTED]> wrote: > * On Wed, Feb 23, 2005 at 07:36:05PM -0700 David Bear wrote: > > On Wed, Feb 23, 2005 at 11:19:26PM +0100, Roland Smith wrote:

Re: awk print

2005-02-24 Thread FreeBSD questions mailing list
On 24 feb 2005, at 12:39, Soheil Hassas Yeganeh wrote: You can set $[1..n] to "" and then print find ./ -name "stuff" | awk '{ $1=""; $2=""; print} On Wed, 23 Feb 2005 22:41:32 -0500, Mark Frank <[EMAIL PROTECTED]> wrote: * On Wed, Feb 23, 2005 at 07:36:05PM -0700 David Bear wrote: On Wed, Feb 23,