DEV Community

Discussion on: Bash If Statements: Beginner to Advanced

Collapse
 
kogans profile image
Stanislav Kogan

Nice article, one of the few bash-themed that are actually taking care to be precise.

I would also add that the condition list can easily be a compound command or a subshell. Like this:

if {
   ... some commands
   }; then

   ... more commands
else
   ... other commands
fi