无法运行 bash 脚本说( xrealloc: 无法分配 18446744072476425728 字节(已分配 77824 字节)?

无法运行 bash 脚本说( xrealloc: 无法分配 18446744072476425728 字节(已分配 77824 字节)?

shell 脚本新手,有人可以帮我调试 bash 脚本吗?请提出建议!

#!/bin/bash
set -e

for i in *_R1_001_trimo.fastq
do
  SAMPLE=$(echo ${i} | sed "s/_R1_\001\_trimo.fastq//")
  echo ${SAMPLE}_R1_001_trimo.fastq
        for((k=11; k<=31; k++))
        do
                cmd="time /home/anaconda3/envs/shannon_env/bin/shannon_cpp shannon -l 100 -s /home/data/brain_samples/fastqgz/trim/test/${SAMPLE}_R1_001_trimo.fastq -o /home/data/brain_samples/fastqgz/trim/test/${SAMPLE}_R1_001_trimo_shan_${k}mer -t 5 -u 2 -g 50 -k ${k} -m 50G > /home/data/brain_samples/fastqgz/trim/test/${SAMPLE}_R1_001_trimo_shan_log”
echo ${cmd}
$cmd
echo “finish"
        done
done

**Error**
kmer1.sh: xrealloc: cannot allocate 18446744072476425728 bytes (77824 bytes allocated)

相关内容