Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

NATIONAL INSTITUTE OF TECHNOLOGY

WARANGAL – 506 004


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

You might also like