[CentOS] Need help with awk one-liner

Sean Carolan scarolan at gmail.com
Wed Jul 9 17:27:44 UTC 2008

> If 'ajpv12://' and ':8008/root' are always going to be the same:
> awk '/:8008\/root/ {printf $3 "\t"}' $x | sed 's/ajpv12:\/\///g' | sed 's/:8008\/root//g'
> If these change then your going to need either a more complex awk,
> or more complex sed expression.
> -Ross

Marvelous.  Thanks for taking the time to help me Ross.  This is going
to be extremely helpful.


More information about the CentOS mailing list