Shell脚本错误;意外

时间:2017-07-26 17:14:32

标签: shell

我有一个脚本循环我的文件,组合两个文件并运行python脚本。但是,如果我运行它,我会收到一个错误:

Syntax error: end of file unexpected (expecting "done")

我的剧本出了什么问题?

#!/bin/sh
for file1 in *R1*fastq
do 
    file2=${file1/R1/R2}
    out=${file1%%.fastq}_output
    python spades.py --careful -1 $file1 -2 $file2 -o $out 
done

0 个答案:

没有答案
相关问题