You have seen how to use the test command or the short version [ ]. This test returns zero (true) or non-zero (false).
You will see how to check the returned result using the if command.
You have seen how to use the test command or the short version [ ]. This test returns zero (true) or non-zero (false).
You will see how to check the returned result using the if command.
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...