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.
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
May be interested
- How to create and run shell scripts in Ubuntu 22.04shell is a user-written command interpreter. script shell helps users write and execute multiple commands at the same time. in this article, readers will learn how to execute shell scripts through command line input.
- What is Linux Shell? The most popular Linux Shellsare you satisfied using the bash shell in linux? or do you want to try an alternative? there are tsch, fish, kornshell and z shell for you to choose from. but which popular linux shell is best?
- Nilesoft Shell - Menu customization application in Windows Explorerif you want more control, try nilesoft shell, an open source tool that lets you personalize the context menu to your liking.
- Shell Sort in data structure and algorithmshell sort is a highly efficient sorting algorithm based on insertion sorting algorithm (insertion sort). this algorithm avoids the case of swapping positions of two distant elements in the selection algorithm (if the smaller element is in the right position quite far from the larger element on the left).
- Operator overload and Load overlap in C ++c ++ allows you to define more than one definition for a function name or an operator in the scope, respectively called load overloading (function overloading) and load operator overloading in c ++. .
- How to download and play Mortal Shell PC for free forevermortal shell is an action role-playing game with gameplay similar to the famous dark souls. to survive in mortal shell you need to defeat enemies quickly, accurately and without mercy. if you are planning to play mortal shell pc for free, quickly get the mortal shell game for free on the epic store right away.
- Load the Input / Output operator stack in C ++c ++ is able to input and output existing data types by using thread extraction operators >> and thread insertion operators
- Operator overloading in C #overloading operator is operator overload. you can redefine or overload most existing operators in c #.
- How to Get Compensation from a BUI Accidentif you were injured in a boating accident, then you can sue the boat operator who caused the injury. for example, the operator may have hit your own boat, or you may have been in the boat with the operator who was intoxicated. either way,...
- Stack operator in Pythonyou can change the meaning of the operator in python depending on the operand used and we call that operator overloading. quantrimang will learn more about this content through the article. invites you to read the track.