Question
Exercises 1) Create a file containing a group of names as names.txt. Sort this file in an ascending order. 2) Checks if the names.txt file
Exercises 1) Create a file containing a group of names as names.txt. Sort this file in an ascending order. 2) Checks if the names.txt file if it is already sorted and write the result to standard output. 3) Sort a column delimited text file on 2nd field. 4) Sort a tab delimited text file on 3rd field and suppress duplicates. 5) Search for any file that is larger than 1000k. 6) Create a numeric data file titled "num.txt", then, sort num.txt file in a reverse order. 7) Create a file names as index.txt. Write some phrases in the file, and then print first three lines in the file. Finally print the file line by line.
8) Create a nm.txt. file Write some phrases in the file. Match lines containing "a", "m" and "s" characters. Prints all lines in the file that begin with the letter "c". 9) Display the files in /etc/passwd and move both forward and backward in the file while the command is running. 10) Find and display all the directories in the directory /etc/apm. 11) Using sort command to sort the directory /etc/passwd by the 3rd field (numeric userid).
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started