Re: Destructive editing?

Sylvain Leroux <[email protected]>
Newsgroups gmane.comp.audio.sox
Message-ID <[email protected]>
On 03/12/2020 02:43 PM, K. H. Hom via Sox-users wrote:
> export PATH=/usr/local/bin:$PATH for file in "$@" do sox $file
> outfile.wav --norm=-0.1 && mv -f outfile.wav $file done
> 
> but there is a problem when the path contains empty space :/ Still
> need to find a solution for this.

Wrap your shell variables in double quotes:

sox "$file" outfile.wav --norm=-0.1 && mv -f outfile.wav "$file"


-- 
-- Sylvain Leroux
-- [email protected]
-- http://www.chicoree.fr
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.