This command doesn't work: ssh $HOST "ls -l | awk '{print $1}'" Above ignores the command "awk"
I think it might be because of the double quotes?
Also, how would I add another set of double quotes inside the awk?
ie: ssh $HOST "awk '{print $1 "*"}' /some_file" I tried escaping the quotes, I even tried this: ssh $HOST "awk '{print $1 "\""*"\""}' /some_file" without success