I'm trying to get watch to work correct with commands that contain quotes, and the watch man page isn't very detailed about how quotes work. To give a concrete example, how can I run the following command inside of watch:
ps -ef | awk -F' ' '{print $2}'
I've tried:
watch "ps -ef | awk -F' ' '{print $2}'"
and
watch 'ps -ef | awk -F\' \' \'{print $2}\''
but neither of these works correctly.