-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
68caaca
commit 21f0973
Showing
2 changed files
with
33 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
#Script: mp32wav script (requires mpg123 package) | ||
#Purpose: Loops through a path and convert all the mp3s to wavs | ||
# | ||
#usage: mp32wav [Path] | ||
|
||
count=0 | ||
|
||
if [ -n "$1" ]; then | ||
cd "$1" | ||
ls | ||
for file in *.mp3 | ||
do | ||
let "count += 1" | ||
echo "$1/$file" > sedEdit | ||
name =`echo "$file" | cut -d'.' -f1` | ||
mpg123 -w ./waves/${file}.wav $file | ||
done | ||
fi | ||
echo "$count mp3s found and converted to wavs... [Baileysoft 2005]" | ||
rm sedEdit | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters