awk '{ system("mv -v " $1 " " $2) }' filelistI used system and mv because it's easier to debug for a non-Perl user.In what warped world is
you're solving problems he didn't even have.Posting code samples that are inefficient (fork and exec /bin/sh and then fork and exec /bin/rm when a single syscall will suffice) and highly insecure is NOT somehow okay just because in this particular case it might not be a problem. Somebody might get the bright idea to use this idiom elsewhere. c.f. "Matt's script archive" and the numerous problems those awful scripts have caused over the last decade or so because of the same attitude.
adjust as necessary. :)
posted by kcm at 10:49 PM on April 21, 2006