summaryrefslogtreecommitdiffstats
path: root/misc/macros.d/macro.1.sh
blob: 93ca59feb9fa1a88b1bb0755e3eb02f9ca6c3fc6 (plain)
1
2
3
4
5
6
#silent
u       Upper case selection
        TMPFILE=`mktemp ${MC_TMPDIR:-/tmp}/up.XXXXXX` || exit 1
        cat %b > $TMPFILE
        cat $TMPFILE| sed 's/\(.*\)/\U\1/' >%b
        rm -f $TMPFILE