Re: off topic! What is the error in this script

2017-06-26 Thread David Wright
On Mon 26 Jun 2017 at 09:24:40 (-0400), Greg Wooledge wrote: > On Sun, Jun 25, 2017 at 06:30:18PM +0300, Teemu Likonen wrote: > > Dominic Knight [2017-06-25 15:35:46+01] wrote: > > > > > To convert a series of .flac files to .mp3 files I attempted to use the > > > following line; > > > > > >> $ fi

Re: off topic! What is the error in this script

2017-06-26 Thread Greg Wooledge
On Sun, Jun 25, 2017 at 06:30:18PM +0300, Teemu Likonen wrote: > Dominic Knight [2017-06-25 15:35:46+01] wrote: > > > To convert a series of .flac files to .mp3 files I attempted to use the > > following line; > > > >> $ find -name "*.flac" -exec bash -c 'ffmpeg -i "{}" -y -acodec > > libmp3lame -

Re: off topic! What is the error in this script

2017-06-25 Thread Dominic Knight
On Sun, 2017-06-25 at 18:30 +0300, Teemu Likonen wrote: > Dominic Knight [2017-06-25 15:35:46+01] wrote: > > > To convert a series of .flac files to .mp3 files I attempted to use > > the > > following line; > > > > > $ find -name "*.flac" -exec bash -c 'ffmpeg -i "{}" -y -acodec > > > > libmp3la

Re: off topic! What is the error in this script

2017-06-25 Thread Teemu Likonen
Dominic Knight [2017-06-25 15:35:46+01] wrote: > To convert a series of .flac files to .mp3 files I attempted to use the > following line; > >> $ find -name "*.flac" -exec bash -c 'ffmpeg -i "{}" -y -acodec > libmp3lame -ab 320k "${0/.flac}.mp3"' {} \; The arguments for "bash -c" go like this:

Re: off topic! What is the error in this script

2017-06-25 Thread Wellington Terumi Uemura
I would do something like... for f in *.flac; do something $f; done It will find all your flac files and do whatever. Em 25 de jun de 2017 11:51, "Dominic Knight" escreveu: > To convert a series of .flac files to .mp3 files I attempted to use the > following line; > > > $ find -name "*.flac"

off topic! What is the error in this script

2017-06-25 Thread Dominic Knight
To convert a series of .flac files to .mp3 files I attempted to use the following line; > $ find -name "*.flac" -exec bash -c 'ffmpeg -i "{}" -y -acodec libmp3lame -ab 320k "${0/.flac}.mp3"' {} \; which I expected to find each flac and convert it to a corresponding .mp3 however, it reads the firs