create archive file for video using playlists, file ages


/ Published in: Bash
Save to your folder(s)

list of vids played in the last 3 weeks...
list over 2 months old from active video section of the nas...
set compare from 1 and 2 above


Copy this code and paste it in your HTML
  1. find . -mtime -25 -name "*log" | xargs awk ' { print $2 } ' | sort | uniq > /var/tmp/video_files_played
  2.  
  3. find . -name "*flv" -mtime +60 | sed 's/^\.//' | sort | uniq > /var/tmp/video_files_arch
  4.  
  5. comm -2 -3 video_files_arch video_files_played | sed 's/^/\./' > video_files_arch_fnl

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.