Replacing all white spaces with commas in a 46MB text file
TextMate can sometimes be very slow with big files like this.

I recommend using a command line utility like sed.

sed 's/ /,/g' orig.txt &gt; modified.txt


will do what you need extremely quickly.  Obviously replace the filenames with your actual filenames.