19.03.2015 Views

Unix Tutorial

test

test

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Korn Shell Operators:<br />

This lists down all the operators available in Korn Shell. Here most of the operators are very similar to what we<br />

have in C Programming language.<br />

Operators are listed in order of decreasing precedence:<br />

Arithmetic and Logical Operators:<br />

Operator<br />

Description<br />

+ Unary plus<br />

- Unary minus<br />

!~ Logical negation; binary inversion (one's complement)<br />

* Multiply<br />

/ Divide<br />

% Modulo<br />

+ Add<br />

- Subtract<br />

> 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 />

File Test Operators:<br />

There are following operators to test various properties associated with a <strong>Unix</strong> file.<br />

Operator<br />

Description<br />

TUTORIALS POINT<br />

Simply Easy Learning

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!