
# 使用する文字コードによってnkfのオプションを修正すること。

if [ "$1" = "title" ]; then
	start=832
	length=80
elif [ "$1" = "artist" ]; then
	start=752
	length=80
elif [ "$1" = "album" ]; then
	start=672
	length=80
elif [ "$1" = "comment" ]; then
	start=592
	length=80
else
	echo "Params : (title|artist|album|comment) <info file>"
	exit 2
fi

tail -c $start $2 | head -c $length | nkf -e | tr -d '\000' 
echo ""
