video play list from list of xml config files


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

get a list of all the video files played in all the vortexes


Copy this code and paste it in your HTML
  1. leo iJam]$ find . -name videos* | grep -v '[0-9]\{4\}.xml' |grep -v 'videos_dev' |grep -v 'videos_1' |grep -v 'videos1' |xargs grep CDATA | awk ' { if ( substr($2,2,4) == "name" ) { print substr($2,16) } else {print substr($2,20)} } ' | sed 's/\]\].*$//' | awk ' { if (NR % 2 == 1) { print $0"/"h".flv" } else {h=$0} }' | sort -o /tmp/video_play_list
  2.  
  3. [rob@leo iJam]$ less /tmp/video_play_list

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.