How can I make several commands to be executed after a && or a ||?
Johnny Rosenberg
gurus.knugum at gmail.com
Fri Feb 17 22:08:08 UTC 2012
Something like the following, described in some kind of self-invented
pseudo code:
If ThisCommand exits successfully {
printf("Something");
SomeVariable=3;
}
DoSomethingElse
How could I do something similar with bash?
You know, something like this:
ThisCommand && (
echo $Something
SomeVariable=3)
DoSomethingElse
What's the syntax for this?
Kind regards
Johnny Rosenberg
ジョニー・ローゼンバーグ
More information about the ubuntu-users
mailing list