#! /bin/tcsh -f # # how to echo out quotes, carrage returns and line feeds # ###################################################################### echo "WARNING: Temperature readings aren't changing, Control Program may be dead" echo "Cut and paste the following command string:" echo "" echo 'echo' '"''XQ#LUKEST\\r\\n''"' '| sock_exchange.tcl 192.168.4.154 80 1 ''"''\\n''"' '1' exit #below are first attempts: echo ' start quote " ' ' " continue quote' '\\r\\n' '//r//n' '/r/n' echo "" echo 'echo' '"' 'XQ#LUKEST\\r\\n' echo "XQ#LUKEST\r\n" | sock_exchange.tcl 192.168.x.x 80 1 "\n" 1 Running any command with with the word "help" as $1 will give the following: These don't work: echo $foo* => get => help echo '$foo*' => get => $foo* echo `$foo*` => get => help: Permission denied. This one, of course(?), does work: echo "$foo*" => get => help* The following all write "goo", minus the quotes, to the screen: echo goo echo "goo" echo 'goo' Whereas: `goo` writes "Command not found", not surprisingly...