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
Post a Comment