Skip to content

Instantly share code, notes, and snippets.

@IanVaughan
Created Nov 21, 2010
Embed
What would you like to do?
record.sh - use rec to record parameter $1.ogg for $2 hours
#!/bin/bash
FILENAME=$1
HOURS=$2
SECONDS=$((3600 * ${HOURS}))
echo "Recording ${FILENAME} for ${SECONDS} seconds..."
rec -c 2 ${FILENAME}.ogg trim 0 ${SECONDS}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment