由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - how to escape both ' and " from tcsh?
相关主题
how to grep with more than one patterns in tcsh?which shell is best?
questioncd player
[转载] qestion about grephow to let awk not print?
how to run background process after logoutequivilent $REMOTEHOST in ksh
关于cxterm的问题shell programming问题:如何同时run多个作业
Re: how to change all the files .cpp to .CChange shell to tcsh?
[转载] About the history.cshrc?.login?.profile?
如何单步执行shell?How to change the title of an xterm?
相关话题的讨论汇总
话题: tcsh话题: escape话题: both话题: howto话题: qa
进入Unix版参与讨论
1 (共1页)
i**********r
发帖数: 36
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!
1 (共1页)
进入Unix版参与讨论
相关主题
How to change the title of an xterm?关于cxterm的问题
bash 彩色 shell promptRe: how to change all the files .cpp to .C
如何在当前目录下查找替换一个串?[转载] About the history
生成script文件的问题如何单步执行shell?
how to grep with more than one patterns in tcsh?which shell is best?
questioncd player
[转载] qestion about grephow to let awk not print?
how to run background process after logoutequivilent $REMOTEHOST in ksh
相关话题的讨论汇总
话题: tcsh话题: escape话题: both话题: howto话题: qa