[linux-audio-user] well well

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: [linux-audio-user] well well
From: Aaron Trumm (aaron_AT_nquit.com)
Date: Sun Apr 25 2004 - 18:03:51 EEST


Well guys, I have been up all night and you'd think I'd've been trying to
recover my crucial data on my crashed harddrive on my main linux audio box.
BUT NOOOO. I've been obsessing over ripping mp3s on my secondary box. So I
spent some time failing at compiling jack cuz I hate grip on my machines cuz
it's so slow and unreliable at least on my machines, and then said screw
this and learned some bash and made my first usuable script tee hee. i'm so
proud of my newbie self that I thought I'd share it. don't blame me if it
blows you up. it shouldn't, it's a pretty simple inane cdparanoia/lame
using script. fun. did I do anything horribly stupid?

here:

---

#!/bin/bash # Aaron Trumm's cdparanoia/lame mp3 ripping script # It simply takes all the tracks on a cd, rips, converts to mp3, and names them a standard file name # It asks you for the artist and album. # Very simple but useful for me.

ARTIST= ALBUM= REMOVE= X=

echo "Artist: "; read ARTIST echo "Album: "; read ALBUM echo "Delete wav files afterwards y/n? "; read REMOVE

cdparanoia -B

for X in 1 2 3 4 5 6 7 8 9 do if [ -e track0"$X".cdda.wav ] then lame track0"$X".cdda.wav "$ARTIST"_"$ALBUM"_"$X".mp3 fi done

for X in 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 do if [ -e track"$X".cdda.wav ] then lame track"$X".cdda.wav "$ARTIST"_"$ALBUM"_"$X".mp3 fi done

for X in 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 do if [ -e track"$X".cdda.wav ] then lame track"$X".cdda.wav "$ARTIST"_"$ALBUM"_"$X".mp3 fi done

for X in 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 do if [ -e track"$X".cdda.wav ] then lame track"$X".cdda.wav "$ARTIST"_"$ALBUM"_"$X".mp3 fi done

if [ "$REMOVE" == "Y" ] || [ "$REMOVE" == "y" ] then rm -rf *.wav fi


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Sun Apr 25 2004 - 16:02:25 EEST