#!/bin/bash
################################################
#This program will add the artist and title, from the filename, to the .ogg file

######trapster - July 28, 2008 --- Enjoy #######

for i in *.ogg ; do
#tracknr=`echo "${file}" | cut -b 1-2`
echo $i > info
artist=`sed -e 's/ -/-/g' info | cut -d '-' -f1`
title=`cut -d '-' -f 2 info | sed -e 's/ //' | sed -e 's/.ogg//'`
echo Artist is "$artist", Title is "$title"
vorbiscomment -a "$i" -t ARTIST="$artist" -t TITLE="$title"
#done
done
rm info

