str="this is a string"

[[ $str =~ "this" ]] && echo "$str contains this"

判断文件:

if [ -f $fq1 ]
then
fq2=`ls /home/input${RGID}/*_2.fq.gz`
else
fq1=`ls /home/input${RGID}/*_1.fastq.gz`
fq2=`ls /home/input${RGID}/*_2.fastq.gz`
fi

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
相关资源
相似解决方案