#!/bin/bash # name of this script: wav2mp3.sh # wav to mp3 iflame=`type -p lame` if [ -z $iflame ]; then echo -e "\n\nlame necesita estar instalado\n" exit 1 fi for i in *.wav; do if [ -e "$i" ]; then file=`basename "$i" .wav` lame -h -b 192 "$i" "$file.mp3" fi done exit 0
Permisos: chmod +x wav2mp3.bash Ejecución: ./wav2mp3.bash
0 comentarios:
Publicar un comentario