Search found 3 matches

by BreadTed
Mon Jun 25, 2018 2:48 pm
Forum: Scripts & Bash
Topic: Using basename in a command run with find -exec
Replies: 5
Views: 448

Re: Using basename in a command run with find -exec

Thanks for the replies. I took xenopeek's answer (it was the only one there at the time!), using execdir instead of exec after noticing the problem on a set of test files (pats self on back). It didn't like a couple of files which had backticks in the title but I just did those manually. Although it...
by BreadTed
Sun Jun 24, 2018 5:53 am
Forum: Scripts & Bash
Topic: Using basename in a command run with find -exec
Replies: 5
Views: 448

Re: Using basename in a command run with find -exec

I should add, I'm using Mint 18.2, and the music files are on a mounted network drive.

But I think the main problem is that I cannot get my head around the proper use of dollar signs, single and double quotes, brackets, etc etc.
by BreadTed
Sun Jun 24, 2018 5:43 am
Forum: Scripts & Bash
Topic: Using basename in a command run with find -exec
Replies: 5
Views: 448

Using basename in a command run with find -exec

What I want to do is convert a whole collection of wav files to mp3 files. I am trying to follow an answer given in https://stackoverflow.com/questions/21634088/execute-ffmpeg-command-in-a-loop , namely, find ./ -name "*.wav" -exec ffmpeg -i "{}" -ab 320k -ac 2 '$(basename {} wav)'.mp3 \; and the ba...

Go to advanced search