blob: 15f94ee3afb1e340b35ca646c133f2e9c6e0a815 [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001
2$afile=$ARGV[0];
3$ifile=$ARGV[1];
4#print "$afile\n";
5$str = `type $ifile`;
6#print "$str\n";
7#$str =~ s/ /\n/g;
8#print "$str\n";
9@outstr=split(/ /,$str);
10open NEWF,">$afile";
11foreach (@outstr) {
12 next if ($_!~ m/^\-[DI]/);
13 print NEWF "$_\n";
14}
15#print NEWF $str;
16close NEWF;