I used the codes you suggested but still getting the same output file (only the first fasta file in the query). I also tried the script below:
#!/bin/bash
#set -eux
#SBATCH -J rep.euk.genomes
#SBATCH -N 1
#SBATCH --ntasks-per-node=64
#SBATCH -o %x.%j.out
#SBATCH -e %x.%j.err
#SBATCH -p nocona
#SBATCH --export=ALL
DB=/lustre/research/phillips/rep_euk_genomes/db/
B=/lustre/work/sneha/software/ncbi-blast-2.11.0+
infile="$1"
resultfile=blastn.${infile}
$B/bin/blastn -query fasta_not_bear_concat/${infile} -db $DB/ref_euk_rep_genomes -max_target_seqs 5 -max_hsps 1 -outfmt -outfmt "6 qseqid sseqid pident length mismatch gapopen qstart qend sstart send evalue bitscore sscinames scomnames" > blastn_out_rep_genomes/${resultfile}
I get this error while running this script:
Too many positional arguments (1), the offending value: 6 qseqid sseqid pident length mismatch gapopen qstart qend sstart send evalue bitscore sscinames scomnames
