William Sutton wrote:

Maybe it's time to switch to Perl :)

#-----
my @file = map { chomp($_); $_; } `ls -1rt /path/to/files`;

foreach my $file (@files)
{
   next unless -f "/path/to/files/$file";

   `cp /path/to/file/$file /tmp/date`;
   # your convert code here
   # and, if you want, uncomment the next line
   # unlink ("/path/to/files/$file");
}
The problem here is that he's not converting multiple
files ito multiple files, but rather multiple files into one
file, so I'm not sure this approach will help any. Perhaps
convert batches of as many files as will fit in one command
line, then seam the files together?

Michael Tharp
--
TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ  : http://trilug.org/faq/
TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
TriLUG PGP Keyring         : http://trilug.org/~chrish/trilug.asc

Reply via email to