[CentOS] Need help with awk one-liner
Sean Carolan
scarolan at gmail.comWed Jul 9 17:27:44 UTC 2008
- Previous message: [CentOS] Need help with awk one-liner
- Next message: [CentOS] Need help with awk one-liner
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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.
Sean
- Previous message: [CentOS] Need help with awk one-liner
- Next message: [CentOS] Need help with awk one-liner
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list