Sed¶
Greedy Regexp in sed¶
http://www.skybert.net/unix/non-greedy-matching-in-sed/
What you need to do, is to match against everything but the closing delimiter, in our case, the '@'. This is done with the character group notation and the negator ^ in front of the closing delimiter:
Multiple sed cmds in cli¶
Change date format¶
Remove empty lines and comments¶
https://stackoverflow.com/a/23808815
Replace after matching line¶
https://stackoverflow.com/a/18620241
i.e. Replace third line after match (foo):