Read between the lines

sed: convert 10-digit number to phone number

by Paul on Oct.11, 2009, under How-To

There was nothing like this on the intarwebnets, so I am enhancing humanity.

echo 1234567890 | sed -e “s/^\(…\)\(…\)\(…..*\)/\2-\1-\3/g”

:, ,

Leave a Reply

For spam filtering purposes, please copy the number 9082 to the field below:

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...