What is if Z in shell script?
What is if Z in shell script? The -z flag causes test to check whether a string is empty. Returns true if the string is empty, false if it contains something. NOTE: The -z flag doesn't directly have anything to do with the "if" statement. The if statement is used to check the value returned by test. What is in if condition in Unix? The if statement executes command and determines if it exited successfully or not. The command can be a separate binary or shell script, a shell function or alias, or a variable referencing any of these. Success...