Mercurial > repos > yufei-luo > s_mart
view SMART/DiffExpAnal/loadMultiFastqFiles.sh @ 33:aa0420172fc6
Deleted selected files
author | m-zytnicki |
---|---|
date | Tue, 30 Apr 2013 14:34:53 -0400 |
parents | 94ab73e8a190 |
children |
line wrap: on
line source
#!/bin/bash OUTFile=${1} shift groupCount=1 replicateNumber=1 arrayZ=( $@ ) #remove the last symble '@' given by commande line unset arrayZ[${#arrayZ[@]}-1] for FILE in ${arrayZ[@]} do #if a new group of fastq, re-count the replicateNumber if echo $FILE | grep -q "@" then groupCount=$(($groupCount + 1)) replicateNumber=1 else echo -e "Group${groupCount}_${replicateNumber}\t${FILE}" >>${OUTFile} replicateNumber=$(($replicateNumber + 1)) fi done