I used
sed 's/[nN]//g' oldfile.fasta > newfile.fasta
to replace all the instances of n's in my 7Gb file.
If I omitted the > newfile.fasta
aspect it took ages as it scrolled up the screen showing me every line of the file.
With the > newfile
it ran it in a matter of seconds on an ubuntu server