[Discuss] awk command line help
J. Bakshi
bakshi12 at gmail.com
Sat May 23 10:38:11 PDT 2009
Dear Noel and list,
Could any one kindly suggest me some help in awk ?
The command I am using is below
```````````````
lsof -i TCP:22 | awk '{print $2 "\t " $8}'
PID NODE
1851 debian:56781->delhi1.thouhost.com:ssh
```````````````````
I like to extract only the domain from the node. i.e. from debian:56781->delhi1.thouhost.com:ssh I need only
delhi1.thouhost.com.
How can I achieve this with the above command ? Please suggest any modification.
thanks
More information about the Discuss
mailing list