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
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
相关文章: