macro.7.sh 179 B

12345
  1. #silent
  2. w delete trailing whitespace
  3. TMPFILE=`mktemp ${MC_TMPDIR:-/tmp}/up.XXXXXX` || exit 1
  4. cat %b > $TMPFILE
  5. cat $TMPFILE | sed 's/[ \t]*$//' > %b