Single quote in a string
bwestlake
Posts: 82
I have an SSH command that I need to send that contains single quote ( ' ) characters. I know that I have done or seen this before but I'm at a loss.
String example:
ubus call dli.relay.ttyATH0.outlets.outlet0 set '{"key":"state","value":"true","cred":"{"is_admin":true,"outlet_access":true,"agent":"ssh","name":"admin"}"}'
String example:
ubus call dli.relay.ttyATH0.outlets.outlet0 set '{"key":"state","value":"true","cred":"{"is_admin":true,"outlet_access":true,"agent":"ssh","name":"admin"}"}'
0
Comments
Paul
I tried this. I was trying to store the command as a constant. I gave up and just used $27.