I am back again with one more question,
so I have a phonebook file with names, phone\#s
for example: smith, joe 123-456-7890
using awk I want to display all entries with a specific area code. here 's what i have tried so far:
awk '$2~/^123/ {print}' phonebook
I can't figure out how to make the area code disappear and have only the last 7 digits appear as the output. Also is it possible for me to sort it by last name. I am assuming pipe sort with awk. anyone?
Thanks again