unix - Bash Scripting - AWK with Delimiter? -


i've got header in text file looks this:

first-name:last-name:city:home-phone:cell-phone

what need display last-name , cell-phone number of each entry.

i'm new bash scripting, , i'm not sure can use this. told awk useful, after looking around, still don't quite understand how use it.

specify field separator -f:

awk -f":" '{print $2, $5}' 

Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -