Instantly share code, notes, and snippets.
sed ':a $!N;s/\n\s*{/ {/;ta P;D' <inputfile>
function() {
Becomes: