Skip to main content
5 events
when toggle format what by license comment
Feb 19, 2018 at 18:35 comment added davejagoda To add to the excellent comment from @jakub.g you can invoke the command like this on OS X: find . -type f -name '*.js' -exec sed -i '' -e :a -e '/^\n*$/{$d;N;};/\n$/ba' {} \;
Dec 13, 2015 at 10:41 comment added Buttle Butkus @jakub.g in place and recursive is exactly what I needed. thank you.
Nov 22, 2013 at 9:48 comment added jakub.g Thanks, I used the following to do it in place for multiple files: find . -type f -name '*.js' -exec sed --in-place -e :a -e '/^\n*$/{$d;N;};/\n$/ba' {} \;
Jul 4, 2013 at 0:57 review First posts
Jul 4, 2013 at 1:29
Jul 4, 2013 at 0:38 history answered Oleksii Shmalko CC BY-SA 3.0