Bash script for testing sent