blob: 15f94ee3afb1e340b35ca646c133f2e9c6e0a815 [file] [log] [blame]
$afile=$ARGV[0];
$ifile=$ARGV[1];
#print "$afile\n";
$str = `type $ifile`;
#print "$str\n";
#$str =~ s/ /\n/g;
#print "$str\n";
@outstr=split(/ /,$str);
open NEWF,">$afile";
foreach (@outstr) {
next if ($_!~ m/^\-[DI]/);
print NEWF "$_\n";
}
#print NEWF $str;
close NEWF;