Difference between revisions of "&&"
Jump to navigation
Jump to search
(6 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
* <code>[[brew update]] && [[brew upgrade]]</code> | * <code>[[brew update]] && [[brew upgrade]]</code> | ||
+ | * <code>[[set -x]] && [[npm run migrate]]</code> | ||
== Related commands == | == Related commands == | ||
− | * [[PowerShell]]: <code> (command 1) -and (command 2)</code> | + | * [[PowerShell]]: <code> (command 1) [[-and]] (command 2)</code> |
− | * <code>[[read]]</code> | + | * <code>[[read]]</code> command |
+ | * <code>[[if]]</code> | ||
+ | * <code>||</code> | ||
+ | * [[Terraform operators]] | ||
== See also == | == See also == |
Latest revision as of 13:59, 19 January 2024
&&
executes the command which follow only if the command which precedes it succeeds. ||
does the opposite.
Related commands[edit]
- PowerShell:
(command 1) -and (command 2)
read
commandif
||
- Terraform operators
See also[edit]
Bash [ -c ]
,alias
,&&
, Bash history, Autocompletion,set
,unset
,export
,.bash_aliases, .bashrc and .bash profile
,PS1
,echo
,brace expansion
, Function,shopt
,trap
,set -e
,source
,PATH
,complete
,disown
,.hushlogin
,.bashrc
,builtin
,eval
,set
,$PATH
,$HOME
,TZ
,.profile
,-e, -i
,Builtin (Bash)
,mapfile
,~
, return (Bash), for, until,declare, dirname, basename, functions.sh
, Bash arithmetic expansion,shift, bash --rcfile, readonly, $1, $@
Advertising: