Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- clear
- echo 'Hello'
- sleep 2
- echo "What's your name?"
- read name
- clear
- echo "hello $name"
- sleep 2
- echo 'What would you like to save to your journal today?'
- read ans
- echo " " >> Journal.txt
- echo "$name `date '+%m-%d-%Y %H:%M:%S'`: $ans" >> Journal.txt
- echo "$name `date '+%m-%d-%Y %H:%M:%S'`: $ans"
- sleep 3
- echo "would you like to add another entrie? (y/n)"
- read yesno
- while [ $yesno == "y" ]; do
- echo "what else would you like to add?"
- read ans
- echo " " >> Journal.txt
- echo "$name `date '+%m-%d-%Y %H:%M:%S'`: $ans" >> Journal.txt
- echo "$name `date '+%m-%d-%Y %H:%M:%S'`: $ans"
- sleep 3
- echo "would you like to add another entrie? (y/n)"
- read yesno
- done
- if [ $yesno == "n" ]; then
- {
- echo "Bye have a good day :)"
- sleep 2
- exit
- }
- fi
- echo "you chose to add another"
- sleep 3
- clear
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement