April 2018
Beginner
284 pages
7h 3m
English
You can use the if command with the test command to check if the string matches a specific criterion:
The less than and greater than should be escaped with a backslash as if it shows a warning.
Let's see some examples to explain how if statements work:
#!/bin/bash if [ "mokhtar" = "Mokhtar" ] then echo "Strings ...
Read now
Unlock full access