Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'while we're at it...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
while we're at it...
Authored by: ChrisR on Mar 17, '04 11:13:47AM
...here's a script I wrote for converting my CDs to flac format:

#!/bin/sh
if test "$1"
then
  for file in "$1"/*.aiff
  do
    cp -v "$file" .
    flac \
      --endian=little \
      --sign=signed \
      --channels=2 \
      --sample-rate=44100 \
      --bps=16 \
      --delete-input-file \
      "$(basename "$file")"
  done
  for file in [1-9]\ *.flac
  do
    mv -v "$file" 0"$file"
  done
else
  echo >&2 "Usage: $(basename $0) /path/to/cd"
  exit 1
fi
Enjoy! ChrisR

[ Reply to This | # ]