#!/bin/sh

new="`mktemp`"
xterm -e vi "$new"

for f in "$@"
do
	tags="`mktemp`"
        jhead -cs "$tags" "$f"
        cat "$new" >>"$tags"
        jhead -ci "$tags" "$f"
	rm "$tags"
done

rm "$new"

