Linux and Unix sort command tutorial with examples
Command sort is used to display/arrange the content of the text file in ascending or descending order. By default, sort command sorts the entire lines. Syntax:
1 | $ sort filename [press enter] |
Example: Suppose we have a file Employee.txt as shown below and we want to sort the content of the file and display at the terminal. By default sort … Read more