#!/usr/bin/env bash if [ -z "$1" ]; then file="outputfile.ogg" else file=$1 fi arecord -f cd -t raw | oggenc - -r -o $file