mapreduce in bash