cloudy-agn/scripts/meta/process_gridoutputs.sh

15 lines
325 B
Bash
Raw Normal View History

2017-04-16 23:46:44 +00:00
#!/usr/bin/env bash
2017-01-08 13:59:02 +00:00
script_dir=$(
cd $(dirname $0) ;
pwd -P |sed 's@^\(.*\)/scripts.*@\1/scripts@'
)
base_dir=`pwd`
bin_dir="$script_dir/../bin"
2017-08-17 23:53:04 +00:00
for file in $(find . -type 'f' -name 'mpi_grid.out')
2017-01-08 13:59:02 +00:00
do
2017-08-17 23:53:04 +00:00
echo "Processing ${file}."
dir=$(dirname $file)
2017-01-08 13:59:02 +00:00
$script_dir/operations/package_tables.sh $dir
done