how to escape both ' and " from tcsh?# Unix - 噫吁兮,危乎高哉
i*r
1 楼
I have a command working in the interactive mode
$tcsh -f -c "cd ~/HowTo/;grep -e '^Q:' *.QA"
now I want to make an alias like
alias listht tcsh -f -c "cd ~/HowTo/;grep -e '^Q:' *.QA"
but obviously it won't work, since tcsh will strip the "s.
though in this particular case I can omit the inner ' and use ' to escape ",
but sometimes you need to escape both, then how can you do that?
thanks!
$tcsh -f -c "cd ~/HowTo/;grep -e '^Q:' *.QA"
now I want to make an alias like
alias listht tcsh -f -c "cd ~/HowTo/;grep -e '^Q:' *.QA"
but obviously it won't work, since tcsh will strip the "s.
though in this particular case I can omit the inner ' and use ' to escape ",
but sometimes you need to escape both, then how can you do that?
thanks!