Skip to content

Instantly share code, notes, and snippets.

@JonasR
Created July 30, 2012 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonasR/3210030 to your computer and use it in GitHub Desktop.
Save JonasR/3210030 to your computer and use it in GitHub Desktop.
#!/bin/bash
for dir in 7 8 9 10 11
do
echo "Currently doing $dir"
cd $dir
grep -P --only-matching "CA\s+0\.\d+" 1207270221251193.$dir.rmsmod | grep -P --only-matching "0\.\d+" > 1207270221251193.$dir.rmsmod_onlyca
R CMD BATCH plotRMS.R
convert plot.eps plot.png
cd ../
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment