Advertisement
Guest User

Untitled

a guest
Dec 18th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.54 KB | None | 0 0
  1.  
  2.  
  3. #! /bin/bash
  4.  
  5. #Assessment 3 script
  6.  
  7. while true
  8. do
  9. clear
  10. echo "===================================="
  11. echo "Please select one of the following options:"
  12. echo "Option 1 - create a backup file"
  13. echo "Option 2 - create a log file"
  14. echo "Option 3 - copy file"
  15. echo "Option 4 - move file"
  16. echo "Option 5 - exit"
  17. echo "===================================="
  18. read answer
  19. case "$answer" in
  20. 1)
  21. backup_files="/home/lukaszd/bin"
  22. dest="home/bin2"
  23. day="$ (date +%A)
  24. hostnameday=$ (hostname -a)
  25. archive_file="$hostname-day.tgz" ;;
  26. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement