Bash Expressions
Jump to navigation
Jump to search
Internal
Difference between -a and &&
If want to combine the results of multiple command executions in an if condition, use &&</t>, not -a.
Example:
if grep "something" /file1.txt && grep "something" /file2.txt' then # "something" exists in both files ... fi