Posted By

rowntreerob on 12/22/08


Tagged


Versions (?)

create archive file for video using playlists, file ages


 / Published in: Bash
 

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

  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  

You need to login to post a comment.