Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Right shift<br />
== String comparison for equality<br />
!= String comparison for non equality<br />
=~ Pattern matching<br />
&<br />
^<br />
Bitwise "and"<br />
Bitwise "exclusive or"<br />
| Bitwise "inclusive or"<br />
&&<br />
Logical "and"<br />
|| Logical "or"<br />
++ Increment<br />
-- Decrement<br />
= Assignment<br />
*= Multiply left side by right side and update left side<br />
/= Divide left side by right side and update left side<br />
+= Add left side to right side and update left side<br />
-= Subtract left side from right side and update left side<br />
^= "Exclusive or" left side to right side and update left side<br />
%= Divide left by right side and update left side with remainder<br />
File Test Operators:<br />
There are following operators to test various properties associated with a <strong>Unix</strong> file.<br />
Operator<br />
Description<br />
-r file Checks if file is readable if yes then condition becomes true.<br />
-w file Check if file is writable if yes then condition becomes true.<br />
-x file Check if file is execute if yes then condition becomes true.<br />
-f file<br />
Check if file is an ordinary file as opposed to a directory or special file if yes then condition<br />
becomes true.<br />
-z file Check if file has size greater than 0 if yes then condition becomes true.<br />
-d file Check if file is a directory if yes then condition becomes true.<br />
-e file Check if file exists. Is true even if file is a directory but exists.<br />
-o file Check if user owns the file. It returns true if user is the owner of the file.<br />
TUTORIALS POINT<br />
Simply Easy Learning