I believe that Steve Dirickson's script will have problems if the directory
name or e-mail address has a space in it.
The best thing to do is download Perl
(http://www.activestate.com/Products/ActivePerl/Download.html) and use it.
Here's a Perl program to do what you want. As written, if there is an error
it will continue with the next line.
#!perl -w
use strict;
my @a;
while (<>) {
chomp;
@a = split /\t/; # Here tab (\t) is the separator character
if (not chdir($a[0])) {
print STDERR "Cannot chdir to $a[0]: $!\n";
next;
}
if (not open OUT, ">forward.ima") {
print STDERR "Cannot open forward.ima: $!\n";
next;
}
print OUT "$a[1]\n";
}