Wednesday, June 1, 2011

A bit of awk to pick some good stuff

Pick out the 5th field within a line of information that consist of many :

cat /etc/passwd | awk '{FS=":" ; print $5}'

No comments:

Post a Comment