On 8/12/19, Greg Wooledge <wool...@eeg.ccf.org> wrote: > On Sun, Aug 11, 2019 at 02:10:06PM -0400, Stephen P. Molnar wrote: >> Thanks to all that shared their expertise. >> >> #!/bin/bash >> while IFS= read -r d >> do >> cd "${d}_apo-3k9b" >> echo "${d}_apo-3k9b" >> echo "${d}_apo-3k9b.dpf" >> /home/comp/Apps/Autodock/autodock4 -p "${d}_apo-3k9b.dpf" -l >> "${d}_apo-3k9b.dlg" >> cd .. >> done <ligand.list >> >> and dos2unix solved the problem!!!!!! > <.. snip ..> > P.S. it would also have been possible to work around the carriage return > issues with IFS, but your dos2unix approach is perfectly valid as well.
Just out of curiosity - how? Thanks, Lee