$ script.pl orig.txt 2> /var/log/errors.log > new.txt && rm new.txt