nievergeltlab
8/30/2017 - 5:56 PM

Get sample ID from genome studio final report, for many files

Get sample ID from genome studio final report, for many files

for files in $(ls *.txt)
do
 samplename=$(awk 'NR==12{print $1}' $files)
 echo $files $samplename >> sample_ids.txt
 samplename=""
done