Korn Shell Operator
This tutorial lists all the operators available in the Korn Shell. Here most of these operators are similar to what we have in the C Program language.
This tutorial lists all the operators available in the Korn Shell. Here most of these operators are similar to what we have in the C Program language.
The operators are listed below in descending order of priority:
Logical and algebraic operators in Unix / Linux
Description Operator + Add a throne (unary operator is the operator of a variable function) - Except a throne! ~ Complementary complementary compensation * Multiplication / division operation Split division + Addition - Subtraction << Left shift >> Right translation == String comparison with! = String comparison is not equal to = ~ Pattern matching & AND Bit permission ^ XOR Bit | OR bit && AND logic || Logical OR + Quantity - Decrease = AssignmentFile checking operators in Unix / Linux
The following table lists the operators that check the various properties of a Unix file.
Operator Description-r file Check if the file is readable, if yes, the condition is true. -w file Check if the file is writable, if it is, the condition is true. -x file Check if the file is executable, if yes, the condition is true. -f file Check if the file is a file that is often in contrast to a particular folder or file, if it is, the condition is true. -s file Check if the file is larger than 0, if it is, the condition is true. -d file Check if the file is a directory, if any, the condition is true. -e file Check if the file exists. It is true even if the file is a directory but exists.According to Tutorialspoint
Previous article: C Shell operators
Next lesson: Flow control in Shell
Update 25 May 2019
Arithmetic operators in Unix / LinuxRelational Operators in Unix / LinuxLogical Operators in Unix / LinuxString Operators in Unix / LinuxFile Check Operators in Unix / Linux
You should read it
- C Shell operators
- Basic Shell operators
- Basic file system in Unix / Linux
- Network communication utilities in Unix / Linux
- System log in Unix / Linux
- What is Unix / Linux?
- Regular Expression in Unix / Linux
- Use variables in Shell
- File Management in Unix / Linux
- Useful commands in Unix / Linux
- Manage folders in Unix / Linux
- Micro editor in Unix / Linux
Maybe you are interested
WiMax gigabit speed creates 4th generation mobile network The Windows era will continue until 2023 Return to the historic moment when NASA spacecraft landed on the Moon through a re-created film from over 14,000 photos The surface of Venus: Why is Venus the hottest planet in the solar system? Fire needs air to burn, so how does the rocket work in space? The lost twin brothers of the Sun may be the culprits for the destruction of dinosaurs