in reply to Reformating pathname
#!/usr/bin/perl -w use strict; #assume the filelist comes from STDIN while (<>) { print $1."output61".$2."\n" if /(.*?\/)input01(.*)/; } [download]