dke-questions
dke-questions > RE: Problems running in batch mode on linux
Oct 12, 2018 03:10 PM | Emilie McKinnon - MUSC
RE: Problems running in batch mode on linux
Hi Live,
Your for loop has some syntax issues. It should look more like this:
#!/bin/bash
export ID_file= id_mTBI.txt
SUBJ_IDs=$(cat $ID_file)
for ID in $SUBJ_IDs ; do
./dke /home/eikeliv/Documents/MILD_TBI_DKE/${ID}/${ID}.dat
Done
Regarding the making of your .dat files automatically try using the "sed" command to replace strings within a file.
Try searching some forums on scripting in bash for specific examples!
Best,
Emilie
Your for loop has some syntax issues. It should look more like this:
#!/bin/bash
export ID_file= id_mTBI.txt
SUBJ_IDs=$(cat $ID_file)
for ID in $SUBJ_IDs ; do
./dke /home/eikeliv/Documents/MILD_TBI_DKE/${ID}/${ID}.dat
Done
Regarding the making of your .dat files automatically try using the "sed" command to replace strings within a file.
Try searching some forums on scripting in bash for specific examples!
Best,
Emilie
Threaded View
Title | Author | Date |
---|---|---|
Live Eikenes | Oct 3, 2018 | |
Live Eikenes | Oct 15, 2018 | |
Corinne McGill | Oct 15, 2018 | |
Live Eikenes | Oct 15, 2018 | |
David Lewis | Oct 15, 2018 | |
Emilie McKinnon | Oct 12, 2018 | |
David Lewis | Oct 3, 2018 | |
Live Eikenes | Oct 4, 2018 | |