quote breaking command for terminal

i seem to be doing okay w/ issueing command line, but have run into a problem. here is what i have so far:

it works fine until i get to

when i check the syntax it splits the command.

how can i preserve the command line to not break apart in applescript?

You need to escape the backslashes in the shell command. So

do script "cat temp | tr 'r' 'n' > oddball.csv." & ThisDate in window 1

should be

do script "cat temp | tr '\r' '\n' > oddball.csv." & ThisDate in window 1