Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

nevada

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

processing columns

print the first column, delimited by space
nawk -Fc '{print $1}' test.txt


print the second column, delimited by :
nawk -F: '{print $2}' test.txt

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS