#!/usr/bin/env bash for f in ./*.json ; do in=$f out=${f%.*}.mp echo "$in -> $out" json2msgpack -i $in -o $out done