Skip to content

Instantly share code, notes, and snippets.

@IanVaughan
Created November 21, 2010 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IanVaughan/709116 to your computer and use it in GitHub Desktop.
Save IanVaughan/709116 to your computer and use it in GitHub Desktop.
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