Bash脚本:Eqw状态

时间:2019-02-14 21:39:00

标签: bash

我一直试图在服务器上运行此代码,但始终发送“ Eqw”状态。 我要处理一个包含三列的文件,一列带有路径,其他是有关该文件的信息。 谁能帮我找出我的代码有什么问题吗?

#!/bin/bash
source $HOME/.bashrc
source /share/apps/Profiles/share-profile.sh
module load compilers/python-2.7.15

MANIFEST=path with the file with three columns
TRIM=trimming program that does work properly

#Run pyadapter_trim.py to trim adapter sequences
COUNTER=0;
#for each file in the input manifest, run tirimming program
while read LINE
do
    READ=`echo "$LINE" | awk -F"\t" '{print $1}'`
    SAMPLE=`echo "$LINE"  | awk -F"\t" '{print $2}'`
    GENOME=`echo "$LINE"  | awk -F"\t" '{print $3}'`
    WDIR=`(dirname $READ1)`
    cd $WDIR
    QCDIR=$WDIR"/ats"
    mkdir -p $QCDIR
    echo -e "Processing sample ${SAMPLE}"
    echo -e "${READ1}..."
    python $TRIM -a $READ
    echo ""
    COUNTER=`expr $COUNTER + 1`

done < "$MANIFEST"
echo "$COUNTER Files Processed"

0 个答案:

没有答案