escaping shell characters..

I need to do this as a shell command but i can’t get all the characters to escape properly with in applescript…


cat dailyQuot.txt | awk -F "> '{print $3}' | tail -1 |awk -F <br '{print $1}

applescript


do shell script "cat " & theFileName & " | awk -F "> '{print $3}' | tail -1 |awk -F <br '{print $1}

of course… i get an EOF error…

it doesn’t like the 2nd escape in "awk -F “>” nor the one before "awk -F

any ideas??

solved the problem


do shell script "cat dailyQuot.txt | awk -F \"\> '{print $3}' | tail -1 |awk -F \<br '{print $1}' "

didn’t have enought escape characters