summaryrefslogtreecommitdiffstats
path: root/misc/macros.d/macro.3.sh
blob: 7dfd263979852ecbfa055703cee268254616b779 (plain)
1
2
3
4
5
6
#silent
S       Sort selection
        TMPFILE=`mktemp ${MC_TMPDIR:-/tmp}/up.XXXXXX` || exit 1
        cat %b > $TMPFILE
        cat $TMPFILE| sort >%b
        rm -f $TMPFILE