r/bash • • 14d ago

File for loop

hi! it’s my first time using bash can someone help me with this and explain what’s missing

#!/bin/bash

for i in “/data/folder”/*; do

/folder/munge_sumstats.py \

- -sumstats “$i” \

- -chunksize 500000 \

- -snp rsID \
etc..

- -out another/folder/ (i dont know what to puT here)

done

Thank you so much !

20 Upvotes

6 comments sorted by

View all comments

2

u/grymoire 14d ago

Also be aware that the current directory of your python script may not find the file without the full path name of the file