1

Script to Read Videos and output information

view story
linux-howto

http://unix.stackexchange.com – I am working on a script that reads all folders inside a Movie folder and outputs the information for each video in a file. The current one I have is this: movies=0 rm Movies/moviex for dir in Movies/* do (cd "$dir" && pwd|cut -d \/ -f5|tr -s '\n' ', ' >> ../moviex && exiftool * -s3 -ImageSize -FileType -t|tr -s '\t' ',' >> ../moviex ) echo "Movie $movies - $dir ADDED!" let movies=movies+1 done Which reads from the Movies folder each movie (eg: Movies/The Matrix/Matrix.mkv) and sends it to a file called moviex inside the Movies folder. The info inside the fil (HowTos)