6. Bash Shell Scripting/Conditional Expressions - Wikibooks
Link: https://en.wikibooks.org/wiki/Bash_Shell_Scripting/Conditional_Expressions
Description: WebJul 20, 2022 · Bash Shell Scripting. Conditional Expressions. Loops. Very often, we want to run a certain command only if a certain condition is met. For example, we might want to run the command cp source.txt destination.txt ("copy the file source.txt to location destination.txt ") if, and only if, source.txt exists.