|
| From: | Marco Ippolito |
| Subject: | Re: [Help-bash] Any way to make commenting one command in a long pipeline easy |
| Date: | Tue, 15 Oct 2019 05:59:32 +0200 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
printf '%d\n' {1..10} |
# grep -v 2 |
grep -v 5
On 15/10/2019 05:16, Peng Yu wrote:
Hi, cmd1 | cmd 2 | ... | cmdn Suppose that I have a long pipeline like the above. I'd like to comment out a cmd (say cmdi) from the pipeline. Although I can break the pipeline in multiple lines, I can not comment out a command in the middle. cmd1 | \ cmd2 | \ ... cmdn Is there an easy way to comment out a command in a pipeline? Thanks.
| [Prev in Thread] | Current Thread | [Next in Thread] |