Re: Destructive editing?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-- sylvain@xxxxxxxxxxx
-- http://www.chicoree.fr


_______________________________________________
Sox-users mailing list
Sox-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/sox-users



[Index of Archives]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux