Linux Shell脚本执行时不保存到临时variables

如果我想执行一个带有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

相关文章

### 创建一个gRPC服务项目(grpc服务端)和一个 webapi项目(...
一、SiganlR 使用的协议类型 1.websocket即时通讯协议 2.Ser...
.Net 6 WebApi 项目 在Linux系统上 打包成Docker镜像,发布为...
一、 PD简介PowerDesigner 是一个集所有现代建模技术于一身的...
一、存储过程 存储过程就像数据库中运行的方法(函数) 优点:...
一、Ueditor的下载 1、百度编辑器下载地址:http://ueditor....