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