Hi Inewsome,
This awk script wrapped in a shell file seems
to do the task you need done.
However, I would create a test directory and some
test files by using the touch command to create
some zero length files. Then, test this script to be
sure it does what you expect *BEFORE* you commit
your real files!
#!/bin/sh
ls -1 *.wav > $1
touch final
chmod +x final
awk 'BEGIN{FS=OFS=""}
{
gsub(/\ /,"\\\ ",$1)
file = $1
gsub(/\\ /,"_",$1)
newfile = $1
line = sprintf("mv %s %s", file, newfile)
print line >> "final"
}
END { close("final"

system("final"

}' $1
Note- $1 on command line will be your input file
that is constructed by putting all the files that end
in ".wav" into it. The file "final" is created and
made executable by the shell script. The awk
script will build a series of move ("mv"

commands,
one for each file in the input file. The END line
in the awk script closes final, then, opens it and
launches the "mv" commands it contains, effectively
renaming the files that contained the spaces.
Hope this helps you!
#rm $1 final
flogrr
flogr@yahoo.com