Friday, December 28, 2007

only second column of /etc/hosts

just a quick one to get things started
a command to look at only the second column(ie host names) in the /etc/ hosts file?

more /etc/hosts | awk `{print $2}`

1 Comments:

Anonymous Jadu Saikia said...

Awk is a very powerful and handy language. Few of my posts here

http://unstableme.blogspot.com/search/label/Awk

11:24 PM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home