macro.1.sh 197 B

123456
  1. #silent
  2. u Upper case selection
  3. TMPFILE=`mktemp ${MC_TMPDIR:-/tmp}/up.XXXXXX` || exit 1
  4. cat %b > $TMPFILE
  5. cat $TMPFILE| sed 's/\(.*\)/\U\1/' >%b
  6. rm -f $TMPFILE