How to hide command output, then run another command | pressku.com

Trending 1 month ago

I person this bid which whitethorn output an error, truthful I hide it utilizing &>/dev/null.

Now I would for illustration to tally this command, past tally different command.

This is what I person now:

( aaa &>/dev/null ) && bbb

I'm expecting to see:

Command 'bb' not found...

But I do not spot immoderate output. Maybe it is because nan first bid does not exist? If it does exist, nan 2nd bid will run.

I besides tried utilizing || alternatively of &&. This does not activity erstwhile nan first bid really does succeed.

How do I execute this for some a succesful first bid tally and an unsuccesful lawsuit successful a azygous line?

More
close