#!/bin/bash

# index of the content on http://www.rottentomatoes.com

for file in *.jpg
do
    file=`echo $file | sed 's#.jpg##'`
    type=`head -n 1 $file | sed 's#/$##;s#.*/##;s#_# #g'`
    echo "$file $type"
done
