Off topic:basename: extra operand error
0
0
Entering edit mode
4.1 years ago
evelyn ▴ 230

I want to use an array for fastq files:-

RUN=${SLURM_ARRAY_TASK_ID}
R1=$(head -n $RUN input.txt | tail -n 1)
data=$(basename $R1 | cut -f 1 -d'_')

Where, input.txt:

GC-1   9  27
GC-2   7  79
GC-3   2  53
GC-4   6  32

I am getting an error $data: basename: extra operand '27'

I am not sure where is the error. Thank you!

sequence • 2.1k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 2771 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6