Outsourced file processing to util.bash