[CentOS] Need help with awk one-liner

Ross S. W. Walker RWalker at medallion.com
Wed Jul 9 17:23:26 UTC 2008


Sean Carolan wrote:

> those are supposed to be tab-separated urls, all on one line.

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

______________________________________________________________________
This e-mail, and any attachments thereto, is intended only for use by
the addressee(s) named herein and may contain legally privileged
and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination,
distribution or copying of this e-mail, and any attachments thereto,
is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender and permanently delete the
original and any copy or printout thereof.




More information about the CentOS mailing list