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

go - Idiomatic way to handle template errors in golang -

python - Creating a new virtualenv gives a permissions error -

c# - What is a NullReferenceException, and how do I fix it? -