SHELL Script Operators
Arithmetic Operator:
+ (Addition)
– (Subtraction)
* (Multiplication)
/ (Division)
% (Modules)
= (Assignment)
== (Equal)
!= (Not Equal)
Relational Operator:
-lt (Less Than)
-gt (Greater Than)
-eq (Equal)
-ne (Not Equal)
-le (Less Than and Equal)
-ge (Greater Than and Equal)
Logical Operator:
-a (AND)
-o (OR)
! (NOT)
special Operator:
-f (file)
-d (directory)
-r (readable)
-w (writable)
-x (executable)
-e (Exit)
Bitwise Operator:
& (Ampersand)
&& (And)
|| (Or)
! (Not)
Comments
Post a Comment