IN="$(mktemp --suffix .s)" OUT="$(mktemp)" cat > "$IN" wma "$IN" "$OUT" if [ $? -eq 0 ]; then SIZE="$(wc -c $OUT)" wm -j 32 -s "$SIZE" "$OUT" fi