cat big-file.txt | grep -v 'bad line' > new-file.txt