Quote:
Originally Posted by suicidaleggroll
Use single quotes and delimit your slashes
Code:
grep 'I 0 0 \\ 7 \\' file
|
Thanks for the reply.
This works if I am logged into the host and run the command. But it doesn't work when I try and put it into a script and run it from a remote host.
When I try it with just the single quotes, it brings back a bunch of lines that aren't related to the specific string:
Code:
ssh root@$STORE grep -a 'I 0 0 \\ 7 \\' /tmp/engine.log
When I run it with quotes around the whole command it doesn't bring back anything:
Code:
ssh root@$STORE "grep -a 'I 0 0 \\ 7 \\' /tmp/engine.log"
Thanks for any information you can provide. I'm still searching around online too.
Thanks.