Teaching by a professional University teacher with complete details and important concepts. Latest Command Line Tutorial.
Expressions
An expression can be: String comparison, Numeric comparison, File operators and Logical operators and it is represented by [expression]:
String Comparisons:
= compare if two strings are equal
!= compare if two strings are not equal
-n evaluate if string length is greater than zero
-z evaluate if string length is equal to zero
-eq compare if two numbers are equal
-ge compare if one number is greater than or equal to a number
-le compare if one number is less than or equal to a number
-ne compare if two numbers are not equal
-gt compare if one number is greater than another number
-lt compare if one number is less than another number
On this page of the site you can watch the video online Arrays in Shell script; if else condiotion | Shell Scripting in Linux with a duration of hours minute second in good quality, which was uploaded by the user Annam Hussain Official 04 June 2022, share the link with friends and acquaintances, this video has already been watched 420 times on youtube and it was liked by 34 viewers. Enjoy your viewing!