This document is a lab assignment from the National Institute of Technology in Warangal, India for the Department of Computer Science and Engineering. It contains instructions for Student 187258, Shamal Shaikh, to write all the grep commands on a file called file1.txt containing sample text. The student is to write 14 different grep commands searching for patterns related to "Unix" and other strings in the file, and then email the soft copy of the assignment responses to the provided email address.
This document is a lab assignment from the National Institute of Technology in Warangal, India for the Department of Computer Science and Engineering. It contains instructions for Student 187258, Shamal Shaikh, to write all the grep commands on a file called file1.txt containing sample text. The student is to write 14 different grep commands searching for patterns related to "Unix" and other strings in the file, and then email the soft copy of the assignment responses to the provided email address.
This document is a lab assignment from the National Institute of Technology in Warangal, India for the Department of Computer Science and Engineering. It contains instructions for Student 187258, Shamal Shaikh, to write all the grep commands on a file called file1.txt containing sample text. The student is to write 14 different grep commands searching for patterns related to "Unix" and other strings in the file, and then email the soft copy of the assignment responses to the provided email address.
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING II B.Tech., I Semester UTP Lab Assignment-1, September 2019
Roll No:___187258_____ Name:___SHAMAL SHAIKH___
1 Write the all the commands in grep
File 1.txt Unix is an OS We can learn Unix easily Unix is very powerful Unix is very well designed. This is a class ni Grep commands : 1.grep -c ‘Unix’ file1.txt 2.grep -c ‘unix’ file1.txt 3.grep ‘Unix’ file1.txt 4.grep -i ‘Unix’ file1.txt 5.grep -v ‘Unix’ file1.txt 6.grep -n ‘Unix’ file1.txt 7.grep -c ‘Unix*’ file1.txt 8.grep ‘[atn]Unix’ file1.txt 9.grep ‘[a-c]Unix’ file1.txt 10.grep ‘[Uni]Unix’ file1.txt 11.grep ‘[^atn]Unix’ file1.txt 12.grep ‘[^Unix]’ file1.txt 13.grep ‘t’ file1.txt 14.grep ‘^t’ file1.txt Mail soft copy to nitw.utp2019@gmail.com