All pastes #875967 Raw Edit

baaba

public text v1 · immutable
#875967 ·published 2008-01-28 13:56 UTC
rendered paste body
$ cat ~/bin/wav2mp3
#!/bin/bash
if [ $# -ne 1 ]
	then
	RATE=128
	else
	RATE=$1
fi
find . -name "*.wav" | \
while read w; do
	lame -b $RATE "$w" "${w/%wav/mp3}"
done

$ cat ~/bin/inactive
#!/bin/bash

echo -n "Преобразование WAV > MP3
Укажите битрейт: "; read br
echo -n "Исполнитель: "; read ta
echo -n "Альбом: "; read tl
echo -n "Год: "; read ty

find . -name "*.wav" | \
while read w; do
	lame -b $br --ta "$ta" --tl "$tl" --ty $ty\
	--tt "`echo "$w" | cut -d\/ -f2 | cut -d . -f1`" \
	"$w" "${w/%wav/mp3}"
done