Created
June 10, 2021 01:39
-
-
Save trantrongbinh/88e75f8de5ac3cac28e184c8e5819e23 to your computer and use it in GitHub Desktop.
Revisions
-
trantrongbinh created this gist
Jun 10, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ ``` #!/bin/bash FORDER_M3U8="/data2/upload2/process/video/*" FORDER_MP4="/data2/upload2/[email protected]/video" FOLDER_MOVE="/backup/backup_m3u8/upload2_data2" LOG="/backup/backup_m3u8/logs.txt" for f in $FORDER_M3U8; do if test -f "$FORDER_MP4/raw-file-$(basename $f).mp4"; then mv $f $FOLDER_MOVE; echo "$f moved to $FOLDER_MOVE" >> $LOG; fi done ```