I have this command where I want to filter make
output:
cd /app && make && sudo nginx -g 'daemon off;'
What is the correct way to insert make | pv -q -L 100
here?
exit-statuspipeshell
I have this command where I want to filter make
output:
cd /app && make && sudo nginx -g 'daemon off;'
What is the correct way to insert make | pv -q -L 100
here?
Best Answer
The problem is that you'll be checking the exit status of
pv
. With POSIXsh
syntax, you could do:Or with
ksh
/bash
/zsh
:Or with
zsh
:Or with
bash
: