Skip to content

Instantly share code, notes, and snippets.

View AlexandreRio's full-sized avatar

Alexandre Rio AlexandreRio

View GitHub Profile
@AlexandreRio
AlexandreRio / flacToMP3
Last active January 4, 2016 02:59 — forked from SyBen/flacToMP3
#!/bin/bash
#License CC-BY-NC-SA for the code.
#This script converts all flac files in a directory into 320kpbs mp3 files, and then move them into another directory,
#set as the first argument. The occurences of words Flac and FLAC will be replace in the name of the working director.y
#considering wd is /path/nameOfDirectory-FLAC, the new directory will be $1/nameOfDirectory-mp3.
#Needs 1 parameter : the path to save the directory containing the mp3 files.
if [ $# -eq 1 ]; then
currentPath=`pwd`
currentFolder=${currentPath##*/}
#!/bin/bash
#License CC-BY-NC-SA for the code.
#This script converts all flac files in a directory into 320kpbs mp3 files, and then move them into another directory,
#set as the first argument. The occurences of words Flac and FLAC will be replace in the name of the working director.y
#considering wd is /path/nameOfDirectory-FLAC, the new directory will be $1/nameOfDirectory-mp3.
#Needs 1 parameter : the path to save the directory containing the mp3 files.
if [ $# -eq 1 ]; then
currentPath=`pwd`
currentFolder=${currentPath##*/}