summaryrefslogtreecommitdiffstats
path: root/misc/macros.d/macro.7.sh
blob: 1f4e66d1378ab4797cfb99c560bf4c5e8e8475b2 (plain)
1
2
3
4
5
#silent
w       delete trailing whitespace
        TMPFILE=`mktemp ${MC_TMPDIR:-/tmp}/up.XXXXXX` || exit 1
        cat %b > $TMPFILE
        cat $TMPFILE | sed 's/[ \t]*$//' > %b