24小时热门版块排行榜    

查看: 2148  |  回复: 0

shidandan123

铜虫 (初入文坛)

[求助] -bash: conditional binary operator expected

请大家帮我看看,我是新手说明书上要执行下面的命令
To compute the derivatives of the electric transition dipole, execute the following Linux commands (enclosed by the parentheses [ and ])
2 [ grep -An "electric dipole" Gaussian-output > temp ] (where the state
of interest is n-1, i.e. for ˉrst excited state "-A2"
2 [ grep -v "electric dipolenjstatenj- -" temp > el-dipoles ]
我执行了就出错了
[hou@localhost sdd]$ [[ grep-A2 "electric dipole" hh.log > temp ] and [ grep -v "electric dipole\|state\|--" temp > el-dipoles ]]
-bash: conditional binary operator expected
-bash: syntax error near `dipole"'
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 shidandan123 的主题更新
信息提示
请填处理意见