how to escape the ' in ssh?
- by Dean Hiller
I need to escape the ' in this command for ssh exec
grep IPADDR /etc/sysconfig/network-scripts/ifcfg-eth0 |awk -F= '{print $2}'
How do I escape that?
I currentl y have this which does not work
ssh host 'grep IPADDR /etc/sysconfig/network-scripts/ifcfg-eth0 |awk -F= '{print $2}''
nor does this
ssh host 'grep IPADDR…