GREP command in Unix

PREV     NEXT

GREP command in UNIX is used to find the whether the search criteria is available in the file and if the search criteria matches then it will print the matching lines.

Ex:


The below example shows on how to search the keyword when we are not sure of the file name. In the place of file name if we provide * key, then it will search the keyword from all the files under the directory and print the file name it matches along with the matching lines.

Grep -i command:

This command is as like “grep” but the “-i” ignores the case sensitive. That means irrespective of uppercase or lowercase letter it will search and print the matching lines.

Ex:


OTHER ADVANCED UNIX COMMANDS:

Below are the list of advanced UNIX commands used in UNIX operation system.

1 .GREP Command in Unix 
2.Whoami Command in Unix
3.Passwd Command in Unix
4.Kill Command in Unix
5.Ps -Ef Command in Unix
6.Df -k Command in Unix
7.Bdf Command in Unix
8.ftp Command in Unix
9.Find Command in Unix
10.Date Command in Unix
11.Uptime Command in Unix
12.Clear Command in Unix
13.Shift Command in Unix
14.Sort Command in Unix
15.Crontab Command in Unix
16.Unix Command Line Arguments

PREV     NEXT

Share this website !!!
Facebook Twitter Linkedin