mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 21:06:52 +03:00
c7638e1a75
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
6 lines
179 B
Bash
6 lines
179 B
Bash
#silent
|
|
w delete trailing whitespace
|
|
TMPFILE=`mktemp ${MC_TMPDIR:-/tmp}/up.XXXXXX` || exit 1
|
|
cat %b > $TMPFILE
|
|
cat $TMPFILE | sed 's/[ \t]*$//' > %b
|