I'm having trouble issuing the following command on remote server. The | awk '{print $1}' did not appear to have any effect on the output. Am I incorrectly escaping the quotation characters? To make it worse, these two commands are actually submitted via a python script... thus making escape just more confusing...
On local server:
ssh remote.server.com "find /root/directory -type f -exec md5sum {} + | awk '{print $1}'"
On remote server:
find /root/directory -type f -exec md5sum {} + | awk '{print $1}'