Terminé

shell script

I need to modify my shell script to download only files with specific filename attributes. Here is what I'm currently using (I only copied the portion of the script that is relevant, I think):

cd $FILELOCATION

for file in `curl –connect-timeout 10 http://$DASHCAM_IP/[login to view URL] | sed 's/^n://' | sed 's/F.mp4//' | sed 's/R.mp4//' | sed 's/,s:1000000//' | sed $'s/\r//' | grep 'Record' | sort -u`;

do

wget -T 10 -t 2 -c http://$DASHCAM_IP$file\[login to view URL];

wget -T 10 -t 2 -c http://$DASHCAM_IP$file\[login to view URL];

wget -T 10 -t 2 -nc http://$DASHCAM_IP$file\[login to view URL];

wget -T 10 -t 2 -nc http://$DASHCAM_IP$file\[login to view URL];

wget -T 10 -t 2 -nc http://$DASHCAM_IP$[login to view URL];

wget -T 10 -t 2 -nc http://$DASHCAM_IP$file.3gf;

done

It currently pulls files with five different extensions and saves them with the extension noted above. I want to keep this functionality but modify it so that the script only downloads files from a range of time. The time is noted in the file name. For example: [login to view URL] (this translates to 2019/03/16 at 13:06:47) or 20190306_174605_PR.thm. (the format: YYYYMMDD_HHMMSS).

The time range I would like to pull is from 5:00 to 22:00 (5AM to 10PM).

Compétences : Linux, Script Shell

en voir plus : shell script remove single line file, executing shell script centos, deleting lines shell script, shell script "-z", shell scripting basic commands, unix shell scripting examples programs, shell scripting programs, shell scripting tutorial point, -z option in shell script, shell scripting examples, shell scripting pdf, common production support shell script, shell script add line file, shell script remove line beginning, cgi shell script textarea, shell script read lines file, add line shell script, bash shell script calling bash shell script, calling shell script using bash, telnet perl shell script

Concernant l'employeur :
( 0 commentaires ) Los Angeles, United States

Nº du projet : #19010527

Décerné à:

AhmadSameer

Hey there, I'm a System Engineer with coding skills. I had developed tons of shell scripts. I can help. Regards.

%selectedBids___i_sum_sub_4% %project_currencyDetails_sign_sub_5% USD en 1 jour
(31 Commentaires)
4.8