This Tutorial explains basics of grep command for Linux/Unix Operating System in minutes. It explains find command with 15 amazing examples. It’s a complete tutorial for grep command.

Tutorial Topics:-

1. Basic grep Command syntax.
2. Basic search with grep command.
3. Search using wild cards.
4. Case Insensitive Search
6. Search Recursively in sub folders
7. Search N lines above the match
8. Search N lines below the match
9. Simple N lines around the match
10. Invert Searching and counting the number of matches
11. Display only the File name match
12. Display the position of match
13. Display line number of match

Nguồn: https://codeigniterbrasil.com

Xem thêm bài viết khác: https://codeigniterbrasil.com/lap-trinh-linux/

27 Comments

sai krishna

April 25, 2020

irritating music

Reply

Touch To Start

April 25, 2020

i like the music. thanks for your effort. good explanation!

Reply

Ehud

April 25, 2020

Thank you. simple quick and well explained

Reply

sai vadde

April 25, 2020

PLEASE don't include a background sound next time

Reply

MrLuupski

April 25, 2020

Why this annoying and distraction music in the background ????

Reply

bhushan padala

April 25, 2020

Please don't add music

Reply

Jyothsna Priya

April 25, 2020

How to download that ppt, you explained

Reply

Vedant Patil

April 25, 2020

1. Consider the following sequence of commands:
grep main a.c b.c c.c > grepout &:
we -1 < grepout &:
rm grepout &:
The ampersand ("&") at the end of each command line informs the shell to run the
command in the background, and it can execute each command line in Parallel. Why
is this not equivalent to the following command line?
grep main a.c b.c c.c I we -1

Reply

Sandeep Sharma

April 25, 2020

sorry but you can't explain.

Reply

balram sharma

April 25, 2020

very good

Reply

Philip Revell

April 25, 2020

music is distracting :(. Often your messages were lost.

Reply

Raj y

April 25, 2020

Super sir

Reply

Shivanand V

April 25, 2020

Explained GREP UNIX command with amazing live example in this video

https://youtu.be/1WEZqImoxzs

Reply

דני קונופליה

April 25, 2020

Very useful topic. But what with a music. Why do you need it? It is the only interfering here. Your voice shall be much louder than a music.

Reply

Sandy

April 25, 2020

Thanks for the video. It is very usefull for us.. www.datasoft.ws
providing preinstalled Dedicated and cloud servers.They will install the
Server in fully functional way and deliver to you within hours.

Reply

Sandy

April 25, 2020

Thanks for the video, I was able to use it for my server rented from datasoft http://datasoft.ws/

Reply

gopi n

April 25, 2020

hello,

13. To list the name of the files alone, we need to use lower case " l " (l for lion) not upper case 'I' (I for ice).

If I want to list the name of the files containing the word teacher with case insensitive search, I should use the command

grep -il 'teacher' *.txt

Reply

Nasim Sheikh

April 25, 2020

nice explanation

Reply

Dimitrije Petrovic

April 25, 2020

Uploader logic – "I don't know how to speak English, so i will put music on top of my voice so no one can understand me"

Reply

Mourad Nechnach

April 25, 2020

the music… duuuuude -_-

Reply

Trotskisty

April 25, 2020

A less-awkward word to use in place of "hyphen" is "dash". Try it. Especially when showcasing CLI stuff.

Reply

My Garden

April 25, 2020

Sorry but you don't explain the result clearly. Might be good for experts but those who are learning can't get the full benefits. Make even short tutorials but explain nicely the expression and the result one by one. And also turn off the music please if don't mind. Thanks

Reply

Navid Safavi

April 25, 2020

What the heck is this loud irrelevant music? What made you think the music on this topic is interesting ?

Reply

vapon

April 25, 2020

Turn to linux first man!

Reply

Dan D

April 25, 2020

Before you learn how to grep, you must first understand the meaning of not so grep. Then and only then can you become a grep gramp.

Reply

Math Jon

April 25, 2020

fantastic

Reply

Al-Girvan Tobias

April 25, 2020

I've downloaded grep on Windows, 32-bit Packard Bell, but I don't know
what to do after, since there's no program to enter. And using the
laptop's command prompt or even Python's does not recognize Grep.

Reply

Leave a Reply