Thank you for the link!! I have downloaded the pdf and saved it! So, far it
has helped me out. I just have one more question:

If I wanted awk to search through a paragraph and stop at every blank line,
display what it found, then continue to the next paragraph and do the
same...where would I start??? Again, Thanks for the link... Sympatico?? I am
from Toronto...what about you?


Thanks,

Anthony Capone
----- Original Message -----
From: "Luke C Gavel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 7:36 PM
Subject: Re: OT: AWK


> On Thu, 1 Feb 2001, Anthony Capone wrote:
>
> > I am trying to get awk to display this line:
> >
> > /home/acapone:
> >
> > but I do not want it to display this:
> >
> > drwx------   2 acapone  users        4096 Oct 12 08:23 temp
> >
> > I would like awk to search for the pattern: / at the beginning of the
line,
> > followed by any number of characters, followed by :
>
> (tested)
>
> ls -R / 2> /dev/null | awk '/^\/.*\:$/ { print $1 }'
>
> >
> > I am stuck and I am not sure how to do this. Also, if anyone has some
good
> > links on the usages of awk, I would appreciate them.
>
> http://www3.ns.sympatico.ca/lgavel/awk/
>
> I dug up the pdf file in the 'awk' directory for you to download
> the pdf if you want.  I forget where I got it, so I'll just give
> you a copy of mine from my external web site.  HTH.
>
>
> > I have the book Unix in a Nutshell by O'Reilly but it is not
> > helping too much.
>
> I have that book!  An oldy but goldy! hehehe, I've had it since
> 1993.  I haven't used it for anything 'cept for vi editing.
>
> Good Luck,
> LG
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to