-
Notifications
You must be signed in to change notification settings - Fork 0
/
movie.sh
executable file
·30 lines (26 loc) · 918 Bytes
/
movie.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
var={"bye bye"}
clear
echo "Menu "
echo "1. Download Movie "
echo "2. Sync Files to AWS S3"
echo "3. Quit"
echo "Enter your Choice "
read Choice
case "$Choice" in
1) echo "Enter Url to download "
read f1
if [ -n $f1 ]
then
wget -r -l2 --no-clobber --convert-links --page-requisites --html-extension --random-wait -p -K -E -e robots=off -U "Mozilla/5.0 (X11; U; Linux; en-US; rv:1.9.1.16) Gecko/20110929 Firefox/3.5.16" '"' $f1
else
echo "$f1 is not valid"
fi
;;
2)
echo " Syncing Files to AWS S3"
aws s3 sync /etc/media s3://movies-movies/media;;
3)
echo "Exiting..........................................."
echo "$var";exit;;
esac