我有一个包含10个不同文件的目录,我需要对所有文件运行相同的命令,但将结果保存在独特的独立目录中与我的输入文件名称作为结果目录名称。据我所知,我的问题是类似Looping through all the inputs and creating distinct output files,所以我尝试了下面的代码:循环访问目录中的所有输入并使用输入名称创建输出目录
cd /user/test
for i in *.txt
do
fastqc $i -o {$i}.out
done
我得到一个错误:
Specified output directory '{1.txt}.out' does not exist
Specified output directory '{2.txt}.out' does not exist
我在想,可能是什么问题,因为这将是有益的同时创建管道和工作流程。 谢谢!
@ bioinfo_123:这个答案有什么问题吗? – anubhava 2014-12-17 15:43:10