Displaying 1 result from an estimated 1 matches for "ajpv12".
Did you mean:
ajp13
2008 Jul 09
1
Need help with awk one-liner
This awk command pulls URLs from an apache config file, where $x is
the config filename.
awk '/:8008\/root/ {printf $3 "\t"}' $x
The URL that is output by the script looks something like this:
ajpv12://hostname.network.company.com:8008/root
Is there a way to alter the output so it only shows "hostname" by
itself? Do I need to pipe this through awk again to clean it up?