Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- #Assessment 3 script
- while true
- do
- clear
- echo "===================================="
- echo "Please select one of the following options:"
- echo "Option 1 - create a backup file"
- echo "Option 2 - create a log file"
- echo "Option 3 - copy file"
- echo "Option 4 - move file"
- echo "Option 5 - exit"
- echo "===================================="
- read answer
- case "$answer" in
- 1)
- backup_files="/home/lukaszd/bin"
- dest="home/bin2"
- day="$ (date +%A)
- hostnameday=$ (hostname -a)
- archive_file="$hostname-day.tgz" ;;
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement