grep: A Practical Guide

grep: A Practical Guide

Navek

6 месяцев назад

71,614 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@buysnoah
@buysnoah - 17.01.2024 21:53

Who up grepping they file rn

Ответить
@emilne83
@emilne83 - 08.02.2024 20:59

Great video overall.


But I just want to point out that last part about filtering out IPs is wrong. The first 3 octets can all be 1-3 digits. That filter will miss a lot of possible IPs.

Ответить
@nielsbom5558
@nielsbom5558 - 06.02.2024 17:40

Give it up for grep in 2024: ripgrep. It’s faster, it auto ignores files you probably don’t want to search for and it’s mostly a dropin replacement for grep.

Ответить
@TreeLuvBurdpu
@TreeLuvBurdpu - 06.02.2024 14:42

-C is for context, a very important word.

Ответить
@recarsion
@recarsion - 06.02.2024 11:45

I use ripgrep btw

Ответить
@SamClegg
@SamClegg - 06.02.2024 06:29

For `-C` the mnemonic is "context" I believe

Ответить
@pabloqp7929
@pabloqp7929 - 06.02.2024 06:18

ripgrep®

Ответить
@logangrosz6529
@logangrosz6529 - 06.02.2024 05:12

It may be worth nothing the globbing is performed by the shell, not grep. It is equivalent to just listing all the files that match the glob (because that's literally what the shell does).

Ответить
@abhishektiwari9561
@abhishektiwari9561 - 05.02.2024 18:56

this is a great short and to the point video.

Ответить
@Hornet1806
@Hornet1806 - 05.02.2024 15:35

Pretty sure -C is context. I use vim as my pager for man pages, but this should apply regardless. In man, I would use /^[ ]*-a, to find the section of the man page relating to the a flag. It reads, “show me lines beginning with some number of spaces immediately followed by -a”.

Ответить
@nomandates9186
@nomandates9186 - 01.02.2024 22:42

video bookmarked

Ответить
@patrickhawk6058
@patrickhawk6058 - 01.02.2024 07:16

grep -ril

Ответить
@tanuj05
@tanuj05 - 31.01.2024 21:32

Nice tutorial

Ответить
@neunmalelf
@neunmalelf - 31.01.2024 03:00

I guess that kind of videos can be helpful for beginner. Not too much detail and options digging, still a decent amount of helpful information. Well done! 👍☺

Ответить
@jvdl-dev
@jvdl-dev - 31.01.2024 00:55

I know this wasn't the point of your video, but when you're using `man` pages, usually your pager can perform searches within by pressing `/` while you're looking at the man page. For example `/` followed by `-D` and then pressing Enter will find the `-D` flag and then press `n` or `N` to search forwards and backwards. (You can also press `?` instead of `/` to start searching backwards. If you spend a lot of time in man pages, definitely worth figuring out the keyboard shortcuts :)

Loved the video btw, very to the point, no unnecessary preamble, just pure usefulness.

Ответить
@tieTYT
@tieTYT - 30.01.2024 23:24

I've always thought "-C n" stands for context. As in, the number of lines of context around the match. At least, that's how I remember it.

Ответить
@bermudi
@bermudi - 30.01.2024 23:11

You should be using your pager to find things in manual pages. Usually `less` is used as man pager and literally all you have to do is press `/`

Ответить
@lylestavast7652
@lylestavast7652 - 30.01.2024 20:32

Been grepping since 1987 or so...

Ответить
@carrion1234
@carrion1234 - 30.01.2024 14:13

what console font is that?

Ответить
@amandasandell3351
@amandasandell3351 - 30.01.2024 00:55

now THIS is the kind of tutorial video i'd like to see more often. Straight to the point, no boilerplate, explain a concept and show an example. Very educational and useful

Ответить
@Tux0xFF
@Tux0xFF - 29.01.2024 23:15

I get a lot of results for the following:
grep a$$

Ответить
@ethernet764
@ethernet764 - 29.01.2024 19:05

Unlocking grep: Install ripgrep 😎

Ответить
@leonardofralini6398
@leonardofralini6398 - 29.01.2024 16:26

No useless talks, great content with examples, good video and audio quality.
Nice job! You earned a sub
Keep it up!

Ответить
@JairEmanuels
@JairEmanuels - 29.01.2024 14:57

Great video, will definitely help me prepare for my exam :)

Ответить
@chewie913
@chewie913 - 29.01.2024 10:54

Need a video on jq , I'm a noob at it but can appreciate how efficient it can be to find and manipulate json

Ответить
@docmalitt
@docmalitt - 28.01.2024 23:40

back to school kids... (btw just pumping your engagement, disregard the word salad coming out of my brai... "there is no spoon Neo"... keyboard)

Ответить
@NostraDavid2
@NostraDavid2 - 28.01.2024 23:25

RE: Logging
Use structured logging and preferrably JSON - you can now use jq and do WAY more powerful stuff in an almost-as-complex language as regex.

Ответить
@thewadegreen
@thewadegreen - 28.01.2024 18:15

I subbed when he said "the alligators", hilarious! Loving the helpful video, it's great how you break everything down so well step by step.

Ответить
@tiriyoncontinuum9519
@tiriyoncontinuum9519 - 26.01.2024 12:59

You are a cat abuser!

Ответить
@spamharder1757
@spamharder1757 - 25.01.2024 19:01

One useful flag I didn't see: the -o flag. I use it a lot when grepping by some regex pattern and I only need the match output

Ответить
@arief_
@arief_ - 25.01.2024 14:12

the nice thumbnail drag me here

Ответить
@jenselstner5527
@jenselstner5527 - 25.01.2024 13:34

Use 'grep -P' for Perl regexes. Then you're able to use special shortcuts like \d for a digit or \s for a whitespace, etc.

Ответить
@0xchilli
@0xchilli - 25.01.2024 13:21

take the sub bro , u deserve it , will recommend u a lot

Ответить
@nikolaygruychev2504
@nikolaygruychev2504 - 25.01.2024 12:59

damn i did not know some of the flags. nice vid man

Ответить
@muhammedkadirtan3469
@muhammedkadirtan3469 - 25.01.2024 02:22

Came for the grep, stayed for the regex. Great content. One thing I would add is, sometimes I grep twice. For example, I want to find all the 404 logs, but then I also want to filter out logs with specific message, say "user not found". Then I can: cat server.log | grep 404 | grep 'user not found'

Ответить
@roganl
@roganl - 25.01.2024 00:15

Clear screen is Ctrl-L .

Ответить
@surplusvalue3271
@surplusvalue3271 - 23.01.2024 07:59

super underrated

Ответить
@ericpayne2846
@ericpayne2846 - 22.01.2024 07:12

Excellent content. I hope you make a ton of videos this year. Thanks for sharing your knowledge!

Ответить
@hasib927
@hasib927 - 21.01.2024 11:55

Really loved the video, very comprehensive yet quite short. Please keep posting more videos.

Two useful flags that I would've love to see: -R and -n.

Ответить
@ekinakkaya9257
@ekinakkaya9257 - 21.01.2024 00:18

straight to the point, also i really like the video & sound quality. you earned a subscriber brah

Ответить
@valen20AdventuresVideos
@valen20AdventuresVideos - 20.01.2024 00:37

When using man I search through it with the '/' key, same as in vim.
To iterate through the results, I press the 'n' key.
Reading the man page for man you can also see other ways of searching through manual pages.

Ответить
@sagarchilivery6112
@sagarchilivery6112 - 19.01.2024 23:19

Trust me, you will grow like anything just keep posting linux videos! totally loving it!

Ответить
@INCLASKY
@INCLASKY - 17.01.2024 22:08

Awesome videos for people learning man, keep it up!

Ответить