I assume that this is on a PC...
Install PERL from cpan.org
Code:
$in = shift (@_);
$out = shift (@_);
open (IN, "$in") || die "Cannot open input file\n";
open (OUT, ">$out") || die "Cannot open output file\n";
while (<IN>) {
print OUT "no $_";
}
close (IN);
close (OUT);
exit (0);
Save the above as a file.
Then type "perl <program> <input file> <output file>"
If you were really geeky, you would use
Code:
perl -pie 's/^/no /;' <input file>
But I thought that the full code might make more sense to a non-programmer.
Bookmarks