envdiff.sed 161 B

123456789101112131415
  1. /^+++/d;
  2. /^[^+]/d;
  3. s/^+//;
  4. s/\\/\\\\/g;
  5. /^PATH=/ {
  6. s/\\\\/\//g;
  7. s#\([=;]\)\([a-zA-Z]\):#\1/\2#g;
  8. s/;/:/g;
  9. }
  10. s/;/\\;/g;
  11. s/^/export /;
  12. s/=/='/;
  13. s/ //g;
  14. s/$/'/;