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}`


Anonymous Jadu Saikia said...

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

11:24 PM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home