swcarpentry / good-enough-practices-in-scientific-computing

Minimalist alternatives to "best practices" paper
https://swcarpentry.github.io/good-enough-practices-in-scientific-computing/
Other
159 stars 23 forks source link

example of 'runall' type file #177

Closed tracykteal closed 7 years ago

tracykteal commented 7 years ago

Should we add an example of a 'run all' type file? This is a big win that people don't often do, so I think an example would be helpful.

gvwilson commented 7 years ago

Please add an example if you have one.

tracykteal commented 7 years ago

One might be:

This script combines

echo "Running script that creates zip output files..." 
mkdir new_zip_files/
 ./zip-script.py *.txt

 echo "saving..."
 mv new_zip_files/*.zip saved_zip_files/

 echo "Unzipping..."
 for filename in *.zip
 do
   unzip $filename
 done
tracykteal commented 7 years ago

I'm not sure if this is more helpful or more confusing though. If there was some generic example we were using throughout the paper, for instance calculating temperature, then it might make more sense.