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/
Xem thêm Bài Viết:
- Hướng dẫn sử dụng hệ điều hành linux siêu tốc – bài 25 Xem cấu hình hệ thống (cpu, ram, hdd)
- Linux cat command summary with examples
- Cài nhiều hệ điều hành Windows và Linux trên một máy tính
- Hướng dẫn tạo USB Boot DLC2019 (NTFS / UEFI) Trên windows 10 ( sử dụng USB 32 GB )
- Hướng dẫn gỡ bỏ Ubuntu sạch sẽ nhất bằng lệnh trên Windows theo chuẩn UEFI-GPT
sai krishna
April 25, 2020irritating music
Touch To Start
April 25, 2020i like the music. thanks for your effort. good explanation!
Ehud
April 25, 2020Thank you. simple quick and well explained
sai vadde
April 25, 2020PLEASE don't include a background sound next time
MrLuupski
April 25, 2020Why this annoying and distraction music in the background ????
bhushan padala
April 25, 2020Please don't add music
Jyothsna Priya
April 25, 2020How to download that ppt, you explained
Vedant Patil
April 25, 20201. 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
Sandeep Sharma
April 25, 2020sorry but you can't explain.
balram sharma
April 25, 2020very good
Philip Revell
April 25, 2020music is distracting :(. Often your messages were lost.
Raj y
April 25, 2020Super sir
Shivanand V
April 25, 2020Explained GREP UNIX command with amazing live example in this video
https://youtu.be/1WEZqImoxzs
דני קונופליה
April 25, 2020Very 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.
Sandy
April 25, 2020Thanks 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.
Sandy
April 25, 2020Thanks for the video, I was able to use it for my server rented from datasoft http://datasoft.ws/
gopi n
April 25, 2020hello,
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
Nasim Sheikh
April 25, 2020nice explanation
Dimitrije Petrovic
April 25, 2020Uploader 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"
Mourad Nechnach
April 25, 2020the music… duuuuude -_-
Trotskisty
April 25, 2020A less-awkward word to use in place of "hyphen" is "dash". Try it. Especially when showcasing CLI stuff.
My Garden
April 25, 2020Sorry 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
Navid Safavi
April 25, 2020What the heck is this loud irrelevant music? What made you think the music on this topic is interesting ?
vapon
April 25, 2020Turn to linux first man!
Dan D
April 25, 2020Before 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.
Math Jon
April 25, 2020fantastic
Al-Girvan Tobias
April 25, 2020I'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.