tab & other character in ssh

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
i m firing grep command through ssh on remote machine.
e.g. ssh -n it364@ grep -m 10 -H 'DEBUG' /home/it364/

when i use tab character, or pattern like ".*" in the grep pattern
then it gives very weird result

any idea,
i) wts wrong in this case?
ii) also how to use tab or pattern ".*" (i.e. match any character for
0 or more times ) character
in case of grep over ssh

Re: tab & other character in ssh

Quoted text here. Click to load it

You need to escape those characters. Single quotes should do it:

ssh -n it...@ 'grep -m 10 -H 'DEBUG' /home/it364'

Does that make more sense?

Site Timeline