#!/usr/bin/perl $spec=$ARGV[0]; foreach (glob($spec)) { open IN, "$_"; while () { print $_; } close IN; }