SHARE
TWEET

Untitled

a guest Mar 5th, 2014 4 Never
  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 }'
RAW Paste Data
Top