Hello, on Linux command line GNU bash, version 5.0.17
When i execute command like mv a b;rm b
How to do it so the "rm b" command is not executed if "mv a b" returns an error?
I have tried to apped "||exit" after "mv a b", but that quits the SSH session.
Thank You
When i execute command like mv a b;rm b
How to do it so the "rm b" command is not executed if "mv a b" returns an error?
I have tried to apped "||exit" after "mv a b", but that quits the SSH session.
Thank You