Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save avishekrk/146f13fb2f1d64827015 to your computer and use it in GitHub Desktop.
Save avishekrk/146f13fb2f1d64827015 to your computer and use it in GitHub Desktop.
#!/bin/bash
##run cpptraj for cases where
##there are not covariance matrics
module load amber/14
for f in *.cpptraj;
do
echo ${f}
prefix=$(echo $f | cut -d. -f1);
echo $prefix
if [ -f ${prefix}_mwcovarmat.dat ]
then
echo "Found ${prefix}_mwcovarmat.dat";
continue;
fi
cpptraj -i ${f};
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment