Phone number list manipulation Nested SED
Still about phone manipulation. I have a list of phone numbers as per below:
(855) 422-6932
(899) 991-9054
(855) 912-7326
(833) 390-8072
(867) 934 2368
(898) 731 7056
(899) 251 5372
(855) 137-6285
(855) 294-5537
(844) 680-7479
If you notice the phone number pattern on line number 5 to 7 it has no "-"
how can I insert "-" using sed or awk?
It feels like i will have to do some sort of nested sed conditional
substitution if it is possible at all.
can anyone help?
No comments:
Post a Comment