I'm writing a script to run AutoDock Vina. The script will look for all files with .pdbqt ending with ligand in front of it. When the script is run, it produces an output file with the same name of the file, but including _out.pdbqt on it. For example ligand_1.pdbqt becomes ligand_1_out.pdbqt. How can I prevent the ligand_1_out.pdbqt from being run in the script. The script is written below.
#!/bin/bash
for x in ligand_*.pdbqt;
do
./vina_1.2.3_mac_x86_64 --config conf.txt --ligand $x
done