#!/bin/bash

### $(DEFAULT}
DEFAULT='\03[0m'
### ${RED}
RED='\x1b[31m'
### ${GREEN}
GREEN='\x1b[32m'
### ${BLACK}
BLACK='\x1b[30m'

bold=$(tput bold)
normal=$(tput sgr0)



if (("$#" != "1")); then
  clear
  echo " "
  ### printf "USAGE: ${0} txt|bin filename.\n\n"
  printf "${bold}${GREEN}USAGE:${BLACK}${normal} ${0} ${normal} \n\n"
  exit
fi



/usr/bin/tidy ${1}   >fixed.${1} ; vi fixed.${1}

touch saveit.bash tidyit.bash
