Changing character in a for loop in bash script to execute a program many times -
i new bash scripting , call program 22 times. 22 different files.
file names this: filename_chr1_test filename_chr2_test filename_chr3_test ... filename_chr22_test
this loop far:
#!/bin/bash chr_num in {1:22}: /path/to/plink --file filename_chr$chr_num_test --exampletest done
for reason i'm getting error back. i'm not sure why. can me debug?
thanks help!!
i suggest:
#!/bin/bash chr_num in {1..22}; /path/to/plink --file filename_chr${chr_num}_test --exampletest done
Comments
Post a Comment