-
Notifications
You must be signed in to change notification settings - Fork 8
/
del12h.sh
21 lines (17 loc) · 1.82 KB
/
del12h.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
. /etc/profile
. ~/.bash_profile
source /etc/profile
find folder/Vtuber-recorder/savevideo/ -maxdepth 5 -name "*.ts" -type f -mmin +720 -exec ls -l {} \; > "folder/Vtuber-recorder/log/del12h$(date +"[%Y-%m-%d-%H]").log" 2>&1
find folder/Vtuber-recorder/savevideo/ -maxdepth 5 -name "*.ts" -type f -mmin +720 -delete; >> "folder/Vtuber-recorder/log/del12h$(date +"[%Y-%m-%d-%H]").log" 2>&1
find folder/Vtuber-recorder/savevideo/ -maxdepth 5 -name "*.ts.*" -type f -mmin +720 -exec ls -l {} \; >> "folder/Vtuber-recorder/log/del12h$(date +"[%Y-%m-%d-%H]").log" 2>&1
find folder/Vtuber-recorder/savevideo/ -maxdepth 5 -name "*.ts.*" -type f -mmin +720 -delete; >> "folder/Vtuber-recorder/log/del12h$(date +"[%Y-%m-%d-%H]").log" 2>&1
find folder/Vtuber-recorder/savevideo/ -maxdepth 5 -name "*.info.txt" -type f -mmin +720 -exec ls -l {} \; >> "folder/Vtuber-recorder/log/del12h$(date +"[%Y-%m-%d-%H]").log" 2>&1
find folder/Vtuber-recorder/savevideo/ -maxdepth 5 -name "*.info.txt" -type f -mmin +720 -delete; >> "folder/Vtuber-recorder/log/del12h$(date +"[%Y-%m-%d-%H]").log" 2>&1
find folder/Vtuber-recorder/ -maxdepth 5 -name "*.log*" -type f -mmin +12000 -exec ls -l {} \; >> "folder/Vtuber-recorder/log/del12h$(date +"[%Y-%m-%d-%H]").log" 2>&1
find folder/Vtuber-recorder/ -maxdepth 5 -name "*.log*" -type f -mmin +12000 -delete; >> "folder/Vtuber-recorder/log/del12h$(date +"[%Y-%m-%d-%H]").log" 2>&1
find folder/Vtuber-recorder/log/ -maxdepth 5 -name "screenlog_*.log*" -type f -exec ls -l {} \; >> "folder/Vtuber-recorder/log/del12h$(date +"[%Y-%m-%d-%H]").log" 2>&1
find folder/Vtuber-recorder/log/ -maxdepth 5 -name "screenlog_*.log*" -type f -delete; >> "folder/Vtuber-recorder/log/del12h$(date +"[%Y-%m-%d-%H]").log" 2>&1
pip3 install --upgrade youtube-dl
pip3 install --upgrade you-get
pip3 install --upgrade streamlink