Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #182640
| From | Dominic Knight <dominicknight@gmx.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | off topic! What is the error in this script |
| Date | 2017-06-25 17:00 +0200 |
| Message-ID | <tWhb3-6kK-7@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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 first .flac only and rewrites it to all .mp3
files ie;
for flacs (a1 > a9) it reads a .flac and outputs mp3's (a1 > a9) but
all mp3's contain the original content of only a1.flac
Where have I gone wrong?
Cheers,
Dom.
Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread
off topic! What is the error in this script Dominic Knight <dominicknight@gmx.com> - 2017-06-25 17:00 +0200
Re: off topic! What is the error in this script Wellington Terumi Uemura <wellingtonuemura@gmail.com> - 2017-06-25 17:10 +0200
Re: off topic! What is the error in this script Teemu Likonen <tlikonen@iki.fi> - 2017-06-25 17:40 +0200
Re: off topic! What is the error in this script Dominic Knight <dominicknight@gmx.com> - 2017-06-26 03:10 +0200
Re: off topic! What is the error in this script Greg Wooledge <wooledg@eeg.ccf.org> - 2017-06-26 15:30 +0200
Re: off topic! What is the error in this script David Wright <deblis@lionunicorn.co.uk> - 2017-06-26 18:40 +0200
csiph-web