DEV Community

Will Sheppard
Will Sheppard

Posted on

sed tricks

Search and replace over multiple lines:

sed -i -e ':a' -e 'N' -e '$!ba' -e 's/)\n(/),\n(/g' file

Top comments (0)