osxenv_pub/scripts/screen_clean.sh

14 lines
224 B
Bash
Executable File

#!/bin/bash
if [[ -n $1 ]]; then
SCRN_FILE=$1
else
echo
echo "Usage: screen_clean.sh <screen file name>"
echo
exit 1
fi
cat -v $SCRN_FILE | tr -d '^@^M' >> "${SCRN_FILE}.cln.log"
echo "--> ${SCRN_FILE}.cln.log"