#!/bin/sh # # Select files with mc and uuencode them to stdout # mcsel -k; [ -f ~/.mc.sel ] || exit 1 oifs="$IFS"; IFS=" " set $(cat ~/.mc.sel) IFS="$oifs" first=1 for f in "$@"; do [ -z "$first" ] && echo uuencode "$f" "$(basename "$f")" first= done rm -f ~/.mc.sel .