mc/misc/macros.d/macro.2.sh

7 lines
197 B
Bash

#silent
l Lower case selection
TMPFILE=`mktemp ${MC_TMPDIR:-/tmp}/up.XXXXXX` || exit 1
cat %b > $TMPFILE
cat $TMPFILE| sed 's/\(.*\)/\L\1/' >%b
rm -f $TMPFILE