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