Hi,
Like I said before, I don't do my scripting in bash, but in perl. There
are 2 books that I find indispensible; namely:
Programming Perl by Larry Wall, Tom Christiansen Randal L. Scwartz (O'Reilly ISBN
1-56592-149-6)
Perl Black Book by Steven Holzner (CoriolisOpen Press ISBN
Hi,
what is going on here is that the for loop is iterating over EACH element
in `ls -Q *.wav`, which returns each song title surrounded by quotes,
which don't make a difference, as it is seperating the list into
elements by splitting on spaces.
David Charles
On Fri, 14 Sep 2001, bascule
Hi,
I do all my scripting in perl, so you could try this:
snip here
use vars qw($dir @files @wavs);
$dir = $ARGV[0];
if (defined($dir)) { wav2mp3; }
elsif (!defined($dir)) {
print \nPlease enter the FULL path to the directory that CONTAINS the WAVS: ;
chomp($dir = STDIN);
wav2mp3;
}
Your script works fine; you just made one mistake:
Don't use quotes around $file now. It comes pre-quoted.
Everything should work fine if you use $file by itself, without quotes
around it. A rudimentary echo test proved this true for me.
-- Asheesh.
On Fri, 14 Sep 2001, bascule wrote:
i