Help - Search - Members - Calendar
Full Version: trying to convert batch files to shell scripts
Hydrogenaudio Forums > Hydrogenaudio Forum > General Audio
kaibab
here is what i am trying to do
convert wavs to mp3s
i just need some help in converting dos batch files to linux shell scripts
here is a link to give you more info
http://www.linuxforums.org/forum/topic-39733.html
Garf
The problem is probably that you need to mark the scripts as executable on linux.

For example

chmod u+x myscriptname.sh
kaibab
i am kinda new to doing shell scripting
Benjamin Lebsanft
OT:
may I ask why you use -b 192 and -B 320 when using -V4 ? -mj is also the default. Seems odd.

If you use bash, you need something like:

CODE
list=`ls ~/path-to-your-waves`

for files in $list
do
 if [[ -f $files && ${files: -3} == "wav" ]]; then
     lame -V4 $files
 fi
done
xmixahlx
just write a for/do script to encode.

CODE
#!/bin/sh
for file in *wav
do
lame --alt-preset standard "$file"
done


CODE
#!/bin/sh
for dir in *
do
cd "$dir"
~/bin/myfuzzylamescript.sh
cd ..
done
kaibab
i have tried the scripts in the way that my batch files were written: bash -x scriptname.sh
it said it couldn't find the files
how do split the commands so you can use only one shell script file?
do i need to add #!/bin/bash before each lame command?
kaibab
i have tried the scripts in the way that my batch files were written: bash -x scriptname.sh
it said it couldn't find the files
how do split the commands so you can use only one shell script file?
do i need to add #!/bin/bash before each lame command?
kaibab
i have tried the scripts in the way that my batch files were written: bash -x scriptname.sh
it said it couldn't find the files
how do split the commands so you can use only one shell script file?
do i need to add #!/bin/bash before each lame command?
kaibab
i have tried the scripts in the way that my batch files were written: bash -x scriptname.sh
it said it couldn't find the files
how do split the commands so you can use only one shell script file?
do i need to add #!/bin/bash before each lame command?
xmixahlx
whoa there... settle down

try $ sh scriptname.sh
kaibab
QUOTE (xmixahlx @ Apr 14 2005, 05:12 PM)
whoa there... settle down

sorry about the triple posting
the stupid browser wouldn't load the next page this morning
the connection showed that it wasn't loading anything
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.