如果我想执行一个带有variables的命令,我总是必须首先将string存储在一个variables中,然后才能执行它…
例:
path_fasta="/home/xxx/yyy/zzz/qqq/" name_fasta="CTA_Mix_DNA.fna" path_outp"/some/Path/" temp='find . -maxdepth 1 -not -name '$name_fasta' -not -name letsgo.sh -delete' $temp temp=$path_mothur'mothur #set.dir(output='$path_outp');summary.seqs(fasta='$path_fasta''$name_fasta')' $temp
我怎么直接做这个, 而不是先把它存储在临时 ? 一定很容易,但没有find解决scheme…
如何在Linux中更新memcached服务器
如何parsingBash中的命令行参数(作为键值对)? 与论据说与嵌套分隔符
awk:$ 2 == /“foo”/ {…}不能按预期工作(与$ foo匹配$ 2,引用)
有没有办法在不中断输出的情况下从pipe道尾部命令每分钟打印一次?
AWK:有没有办法限制输出字段的宽度?
Bash:从chroot和切换用户执行命令
如何在Linux / Unix上添加基于文件types的文件扩展名?
查找空目录UNIX
Webapp更新shell脚本
使用tac和sed反向文件
代替:
temp='find . -maxdepth 1 -not -name '$name_fasta' -not -name letsgo.sh -delete' $temp
…只是使用:
find . -maxdepth 1 -not -name "$name_fasta" -not -name letsgo.sh -delete