in reply to Remove the ^M Character from a Document
Along the same lines:
I often get these strange characters ^[[00m when I save the list command into an output file ( ls *.txt > list) which is visible only in vi. I am aware that these characters appear due to alias ls='ls --color' option in my .bashrc file. I don't want to unalias ls in each window. Is there a similar solution for fixing this?