I need to create one .csv or .txt file of all the summaries of each trimming report. I want to create a spreadsheet of my reads so that I can report to my PI. I have 100 trimming reports, and would prefer to not do it by hand. My trimming reports look like this:
MI9_S76_L001_R1_001.fastq.gz_trimming_report.txt
MI9_S76_L001_R2_001.fastq.gz_trimming_report.txt
I think I could use a grep function of some sorts?
I've tried:
grep *.txt 'reads' > trim_report12.txt
And get the following output:
grep *.txt 'reads' > /work/srile14/trim_report12.txt
grep: reads: No such file or directory
Thanks for your help in advance! I'm fairly new to coding.
Scott
MI9_S76_L001_R1_001.fastq.gz_trimming_report.txt
MI9_S76_L001_R2_001.fastq.gz_trimming_report.txt
I think I could use a grep function of some sorts?
I've tried:
grep *.txt 'reads' > trim_report12.txt
And get the following output:
grep *.txt 'reads' > /work/srile14/trim_report12.txt
grep: reads: No such file or directory
Thanks for your help in advance! I'm fairly new to coding.
Scott
Comment