Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 5th, 2014  |  syntax: Bash  |  size: 0.18 KB  |  views: 4  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/bash
  2.  
  3. foo='  HELLO \
  4.                   REDANT=${M45234}${CM_D33D}C \
  5.                   MOREF=${C333M_V453451}${C33M_ERJE}'
  6.  
  7. echo "$foo" | sed -r '{ :s; s/( )? *\\ *$/\1/; Te; N; bs; :e; s/\n//g }'