I am new to bash scripting and would like to call a program 22 times. for 22 different files.
file names look something like this: filename_chr1_test filename_chr2_test filename_chr3_test ... filename_chr22_test
this is my for loop so far:
#!/bin/bash
for chr_num in {1:22}:
do
/path/to/plink --file filename_chr$chr_num_test --exampletest
done
For some reason I'm getting an error back. I'm not exactly sure why. Can someone help me debug?
Thanks for your help!!