davideaves.com

Live in a world of your own, but always welcome visitors.

View on GitHub
18 November 2010

Bulk update the meta tags on all m4v files in a directory.

by deaves

#!/bin/bash
## Created by: deaves
# Bulk update the meta tags on all m4v files in a directory.
#
## Requires: mpeg4ip

DATA="EPISODES"

ls *.m4v | while read FILE; do

  FILE="$(echo "$FILE" | awk -F"." '{print $1}')"
  TRACKS="$(wc -l EPISODES | awk '{print $1}')"

  grep ^"$FILE" "${DATA}" | while IFS='|' read TRACK TITLE DIRECTOR WRITER YEAR COMMENT; do
        echo "$FILE 
  done

done
tags: bulk update - linux - meta tags - script