Re: Multiple Pipes in series - possible?
Jan Stary <[email protected]> Tue, 29 Jun 2021 16:39:50 +0200
| Newsgroups | gmane.comp.audio.sox |
|---|---|
| Message-ID | <YNswtdmel/[email protected]> |
On Jun 29 13:46:30, [email protected] wrote: > Is it possible to run multiple pipe operations in series? Yes. That's what a pipe is. SoX will read from stdin and write to stdout if the filename given is '-', so you can pipe anything you want to and from sox. > For example, instead of: > "sox" "|'sox' 'input-audio.wav' -p gain 0.0" "output-audio.wav" > and then > "sox" "|'sox' 'output-audio.wav' -p gain 0.0" "output-audio-2.wav" > is it possible to have the pipe in the first command to be in the input for > the pipe in the second command? Something like: > "sox" "|'sox' '"|'sox' 'input-audio.wav' -p gain 0.0"' -p gain 0.0" > "output-audio2.wav" This is not a very good example, as this pipeline does nothing. Tell us what you actually want to do. Jan