/ Published in: Bash
get a list of all the video files played in all the vortexes
Expand |
Embed | Plain Text
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 [rob@leo iJam]$ less /tmp/video_play_list
Comments
Subscribe to comments
You need to login to post a comment.

cd to ./iJam
gets list like :
http://vortexme.com/video/active/MLSTeams/MLSLeague/111208wowrichardsv2.flv http://ij.am/video/active/MLSTeams/Chivas/110508extratimewowmovsisyan.flv http://ij.am/video/active/MLSTeams/Chivas/091307lagcdcmendozagoal350.flv http://ij.am/video/active/MLSTeams/Chivas/091307lagcdcmerlingoal350.flv http://vortexme.com/video/active/MLSTeams/MLSLeague/091307lagcdcrazovgoal350.flv http://vortexme.com/video/active/MLSTeams/MLSLeague/042608smgotww5gallardowinner350.flv http://vortexme.com/video/active/MLSTeams/MLSLeague/042008smgotww4windonovan_350.flv