This is what I have so far. I am trying to write a script that will encode to wav and then to ogg, and name the ogg from a file that I type in as the "title_file". Its not working. 8(
Any ideas are appreciated.
Code:
#!/bin/bash
echo "what is the name of your title file?"
read title_file
cdparanoia -Q
cdparanoia -vwB
for i in *.wav; do
i=$(echo "$i"|sed "s/.wav$//")
for t in 'cat "$title_file"'; do
t=$(echo "$t"|sed "s/"$i"/"$t" /"$title_file"")
oggenc "$i".wav -q 5 -t "$t"
rm -f "$i".wav
done
Bookmarks