From Queen Peccary, 3 Years ago, written in Bash.
This paste is a reply to nested for loop from cryptic0 - view diff
  1. #!/bin/bash
  3. cat ~/gbs/fastq/Round2/stacks/aln/lane2/lane2.files | while read line
  4. do
  5.   k="$HOME/gbs/fastq/Round2/stacks/aln/lane2/$line.fq.gz.sai"
  6.   m="$HOME/gbs/fastq/Round2/stacks/samples/Lane2/$line.fq.gz"
  7.   bwa samse /ref/refgenome.fa "$k" "$m" > "$HOME/gbs/fastq/Round2/stacks/aln/sam/lane2/$line.sam" | tee "$HOME/gbs/fastq/Round2/stacks/aln/sam/lane2/${line}_sam.log"
  8. done

Replies to Re: nested for loop rss

Title Name Language When
Re: Re: nested for loop Ample Motmot bash 3 Years ago.