7 echo "usage $program:t $in $out"
8 echo "Parses grompp debug logfile into original processed topology file"
15 if ( $out:h == $out:t ) then
16 set backup = \#$out:t\#
18 set backup = $out:h/\#$out:t\#
20 echo "Back Off! I just backed up $out to $backup"
24 echo "FATAL ERROR: input file $in does not exist"
28 echo -n "Processing..."
29 grep -E '(\".*\" : .* :)|(found directive)' $in | sed 's/found directive '\''\(.*\)'\''/[ \1 ]/' | sed 's/\".*\" : .* ://' >! $out