Linux学习1之shell中将脚本文件调用函数的输出值输出到文件
一般a.sh等脚本文件可以很容易的将a.sh的echo等数据输出到文本文件,如:./a.sh >1.txt但是无法将脚本文件调用函数的输出值输出到文件可以使用%>:hadoop@Mcnode1:~/cloud/adam/xubo/data/test20160310/test$ ./a.sh %> 1.txta.sh代码:hadoop@Mcnode1:~/clou
·
一般a.sh等脚本文件可以很容易的将a.sh的echo等数据输出到文本文件,如:
./a.sh >1.txt
但是无法将脚本文件调用函数的输出值输出到文件
可以使用%>:
hadoop@Mcnode1:~/cloud/adam/xubo/data/test20160310/test$ ./a.sh %> 1.txt
hadoop@Mcnode1:~/cloud/adam/xubo/data/test20160310/test$ cat a.sh
#!/bin/bash
echo "hello"
bwa aln ../GCA_000001405.15_GRCh38/GCA_000001405.15_GRCh38_full_analysis_set.fna ../SRR003161h20.fastq > SRR003161h20t1.sai
bwa请参考其他文章
查看:
hadoop@Mcnode1:~/cloud/adam/xubo/data/test20160310/test$ cat 1.txt
hello
[bwa_aln] 17bp reads: max_diff = 2
[bwa_aln] 38bp reads: max_diff = 3
[bwa_aln] 64bp reads: max_diff = 4
[bwa_aln] 93bp reads: max_diff = 5
[bwa_aln] 124bp reads: max_diff = 6
[bwa_aln] 157bp reads: max_diff = 7
[bwa_aln] 190bp reads: max_diff = 8
[bwa_aln] 225bp reads: max_diff = 9
[main] Version: 0.7.12-r1039
[main] CMD: bwa aln ../GCA_000001405.15_GRCh38/GCA_000001405.15_GRCh38_full_analysis_set.fna ../SRR003161h20.fastq
[main] Real time: 32.801 sec; CPU: 4.116 sec
更多推荐
已为社区贡献3条内容
所有评论(0)