Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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). image text in transcribed

image text in transcribed

in upuntu(linuxe(
Exercises I 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. 10 OS Lab. - 34 Class - Exp. 5/2018 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Datacasting How To Stream Databases Over The Internet

Authors: Jessica Keyes

1st Edition

007034678X, 978-0070346789

More Books

Students also viewed these Databases questions