sox-users@lists.sourceforge.net unofficial mirror
 help / color / Atom feed
From: Sylvain Leroux <sylvain@chicoree.fr>
To: "K. H. Hom" <handwash@protonmail.com>, sox-users@lists.sourceforge.net
Subject: Re: Destructive editing?
Date: Thu, 12 Mar 2020 14:55:17 +0100
Message-ID: <1638b112-552e-085d-bbf2-bb22f6905bfb@chicoree.fr> (raw)
In-Reply-To: <13949vydQ3L3riLI8FYWQwzzAmNyMMsuVI27Uhw9grc5IYCO665TrR3LyQX4i4wP7BqbNe3yqaHDbH-4Hf252HT4jTUZYzxKT4VpyX5PPtI=@protonmail.com>

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


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

      parent reply index

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-07 13:18 K. H. Hom via Sox-users
2020-03-08 16:09 ` Peter P.
2020-03-12 13:43   ` K. H. Hom via Sox-users
2020-03-12 13:52     ` Grondin Lefebvre Renaud (NHQ-AC)
2020-03-12 13:55     ` Sylvain Leroux [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.sourceforge.net/lists/listinfo/sox-users

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1638b112-552e-085d-bbf2-bb22f6905bfb@chicoree.fr \
    --to=sox-users@lists.sourceforge.net \
    --cc=handwash@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

sox-users@lists.sourceforge.net unofficial mirror

Archives are clonable: git clone --mirror https://public-inbox.org/sox-users

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.audio.sox
	nntp://ou63pmih66umazou.onion/inbox.comp.audio.sox
	nntp://news.gmane.io/gmane.comp.audio.sox

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git