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
5 ★ | 1 Vote
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
9 ways to fix the error of not being able to save files as JPEG or PNG in Photoshop
Download standard and beautiful Word file experience initiative cover template
How to use the file search command on Windows, find saved files
How to split sheet into multiple separate Excel files
How to merge PDF files, merge and join multiple PDF files into a single file
How to clean up iPhone junk, delete junk files to free up iPhone storage