Created
August 31, 2012 19:38
-
-
Save JonasR/3557985 to your computer and use it in GitHub Desktop.
create plots
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for directory in `ls -d */` | |
do | |
cd $directory | |
echo now $directory | |
echo "First part" | |
for model in `ls | grep .xvg | grep -v -P "\.eps$" | grep -v rama|grep -v pressure|grep -v temperature | grep -v potential|grep -v totalEnergy` | |
do | |
MODELNAME=${model%%.[^.]*} | |
MODELNAME=${model} | |
echo "Processing model : "$MODELNAME | |
xmgrace -hardcopy -printfile $MODELNAME.eps -nxy $MODELNAME | |
done | |
echo "Second part" | |
for model in `ls | grep -v -P "\.eps$"| grep .xvg | grep rama` | |
do | |
MODELNAME=${model%.[^.]*} | |
MODELNAME=${model} | |
echo "Processing model : "$MODELNAME | |
xmgrace -hardcopy -printfile $MODELNAME.eps $MODELNAME | |
done | |
echo "Third part" | |
for model in `ls | grep .xvg | grep -v -P "\.eps$"| grep -P "pressure|temperature|potential|totalEnergy"` | |
do | |
MODELNAME=${model%.[^.]*} | |
MODELNAME=${model} | |
echo "Processing model : "$MODELNAME | |
xmgrace -hardcopy -printfile $MODELNAME.eps -nxy $MODELNAME -pexec "RUNAVG(S0,100)" | |
done | |
cd .. | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment