#!/bin/bash
  
  clear
  echo -e
  echo -en "\E[32;1m Cuting end of files... \E[32;0m"
  echo -e
  ls STOCK/
  echo -e
  echo -en "\033[1m Input image <name>: \033[0m"
  tput sgr0
  read INPUT
  echo -e
  echo -en "\033[1m  Input <size> end of file: \033[0m"
  tput sgr0
  read SIZE
  echo -e
  
  echo -en "\033[1m  Rename original $INPUT \033[0m"
  mv -v STOCK/$INPUT STOCK/$INPUT.orig
  echo -e
  echo -e
  
  dd if=STOCK/$INPUT.orig of=STOCK/$INPUT bs=1 count=$SIZE
  
  echo
  echo -en "\033[1m Finished \033[0m"
  echo
  tput sgr0
  echo
  echo "Press Enter to continue"
  read enterKey
