Linux Crash Course - The grep Command

  Рет қаралды 110,985

Learn Linux TV

Learn Linux TV

Күн бұрын

Пікірлер: 84
@TradersTradingEdge
@TradersTradingEdge 2 жыл бұрын
Love these series Jay, thanks very much. What I really appreciate in your videos is, that you explain the meaning/naming of options in the commands. For example "-r" for "recursive" ,or "-i" for "insensitive". This helps very much to memorize these options, because they are endless when it comes to shell commands ;-) Keep up your great work Jay, thanks.
@Ladida455
@Ladida455 2 жыл бұрын
I´d love to see a episode on advanced grep use-cases. I´m often supprised how powerful and useful this little application is.
@Mythologos
@Mythologos 2 жыл бұрын
Grep is what got me into Unix, it is hands-down my #1 favorite program ever written, I use it for everything! If I hadn't found grep I'd probably still be using Linux like Windows, it opened up a whole world for me.
@Andrii87
@Andrii87 9 ай бұрын
Tutorial starts at 2:00
@mikegropp
@mikegropp 2 жыл бұрын
Often the reason people use the format "cat file.txt | grep term" is because they want to search for multiple terms separately. I can can tap the up arrow to get the previous command then easily change "term" since it's at the end of the command where the cursor will be. For a command in a bash file, I would use "grep term file.txt" to keep it shorter.
@chrisa.1740
@chrisa.1740 2 жыл бұрын
Excellent tutorial! I've only used `grep` by looking up examples, but now I'll try and use it from scratch like your examples. This video was well formatted and informative, thank you.
@seanfaherty
@seanfaherty 2 жыл бұрын
I usually run one terminal with what I’m doing and another with the -h dialogue or the man pages. Grep -h or man grep
@jmlc11
@jmlc11 2 жыл бұрын
I also use -l to list only the filenames which contain the search term. and also zgrep for when the files are compressed. Great video!
@d00dEEE
@d00dEEE 2 жыл бұрын
And pgrep to look at processes...
@theunclemez
@theunclemez 2 жыл бұрын
Hello Jay only to say thank you so much for this video i'll watch it like a good dozen of times you actually realized an old dream that even books wasn't able to make possible Stay blessed and I stay tuned
@AngieThinks
@AngieThinks Ай бұрын
Best grep tutorial! Thank you, I like seeing it live for my training 🤓
@d00dEEE
@d00dEEE 2 жыл бұрын
Jay, next week do "How to do your taxes with the 'find' command!" 😁 'find' has soooo many options that it probably requires 3-4 videos...
@Boom-i9x
@Boom-i9x 9 ай бұрын
Thank you for this! I didn't need to take notes because your way of teaching made it so easy to learn and remember for future application.
@oskar3514
@oskar3514 2 жыл бұрын
Good one Jay. Thanks for the detailed examples. The grep -ri is very powerfull and I'll be using it many times...
@d00dEEE
@d00dEEE 2 жыл бұрын
Do 'which rgrep', and if it exists, it's the equivalent of 'grep -r' without having to do as much typing (yeah, yeah, you're only saving 0.002 seconds, but it's easy to remember, too 😀).
@xrafter
@xrafter 2 жыл бұрын
@@d00dEEE اكيد
@4thatfilm
@4thatfilm 8 ай бұрын
@11:05 I love it how Jay gets irritated with us asking a rhetorical question. I've seen other video instructors do this too. It must be frustrating after a while making these videos ...labors of love... and why aren't you people getting this!?!?
@nkmicros540
@nkmicros540 2 жыл бұрын
I use "grep" for a couple of years now and did not know I could use it individually, without pipping it as with "cat", "less" or so... This command is more powerful than I was thinking =)
@TheCodeAlwaysWins
@TheCodeAlwaysWins Жыл бұрын
Needed a refresher and this was a great/concise overview
@volkervitt
@volkervitt 2 жыл бұрын
After using grep the non-optimal way I finally learned how to do better. Thanks for the video.
@onurronel
@onurronel Жыл бұрын
THAT IS A INCREDIBLE TEACHING WORK, THANK YOU VERY MUCH.
@kalibmartin7062
@kalibmartin7062 2 ай бұрын
Thank you for sharing your knowledge
@aaronperl
@aaronperl 2 жыл бұрын
Are you planning to do (or have you done in the past?) an intro to regular expressions? That's where the real power of grep (and several other unix/linux tools) is. Please realize I am not criticizing the lack of regex in this video; introducing the basics of grep is complex enough as it is :) I love regular expressions, I use them all the time. But I always had trouble when I was teaching, trying to get people to really understand what they do and why they're useful. And the syntax is.... not always obvious, even when you're familiar with it. This is good series. Although I already know most of these myself ( _not_ a criticism! :) we were all beginners at some point), I have learned a few things along the way, and I think these videos serve as a good introduction to the tools that are available for those just getting started, or who may have avoided the command line in the past.
@estaloncha319
@estaloncha319 2 жыл бұрын
Don't apologise so much xd
@aaronperl
@aaronperl 2 жыл бұрын
@@estaloncha319 can't help it, I'm Canadian 😁
@BrianKismetDesign
@BrianKismetDesign 2 жыл бұрын
Thanks Jay. I never looked at the man page because I tend to use find, but you explained it very clearly. Grep demystified! I'll be using it a lot more now.
@rileyf9462
@rileyf9462 Жыл бұрын
great video and great content. production was there and I am excited to keep using your short and specific videos to help me further my understanding of terminal thank you for doing this.
@Bubbasaure92
@Bubbasaure92 5 ай бұрын
Thank you so much this really helped with completing my assignment
@goshmain982
@goshmain982 3 ай бұрын
Very clean and concise
@pfeffi030
@pfeffi030 Жыл бұрын
loving the Mr. Rogers Sticker 🙂
@duamalik4645
@duamalik4645 Жыл бұрын
your videos are super helpful, I appreciate your work.
@dhawang.gayash4080
@dhawang.gayash4080 2 жыл бұрын
Jay looks great fashioning that beard. Kudos bro!!
@YuriySamorodov
@YuriySamorodov Жыл бұрын
Isn't pipe slows slowing down execution? In case of cat | grep bash should first get contents of the file and then pipe the whole contents to grep. Perhaps grep would run cat under the hood first though...
@joffreybluthe7906
@joffreybluthe7906 2 жыл бұрын
I started watching your channel a few days ago, and I saw some earlier ones before this one. Funny enough, it seems to me like you look younger now than you used to, I think it's because you used to wear glasses and no beard ^^ Anyway thx for the tips! I'm a big fan of the grep command :)
@georgea8522
@georgea8522 Ай бұрын
Wow, I saw a Richard Dawkins book on the shelf and it looks like "The Greatest Show on Earth." Cool!
@Joey_Tai
@Joey_Tai 5 ай бұрын
Great video. I have a question. How do you build this command prompt?
@brpawankumariyengar4227
@brpawankumariyengar4227 4 ай бұрын
Thank you very much ….very useful Video
@goshmain982
@goshmain982 3 ай бұрын
Liked for real world examples
@georgehope5477
@georgehope5477 Жыл бұрын
Super cool, very useful, thank you very much.
@srsr6099
@srsr6099 2 жыл бұрын
Jay can we ask for shell-customization video
@k.chriscaldwell4141
@k.chriscaldwell4141 Ай бұрын
Thank you.
@bahathir_
@bahathir_ 2 жыл бұрын
Corrections for "-c" option. "-c, --count print only a count of selected lines per FILE.." So if there are 2 or more occurances in a line, it count as 1. Thank you.
@ironmanlifts
@ironmanlifts 2 жыл бұрын
Hey Jay, thanks for the videos. Funny you mentioned the grep command cause today I looked up how to print everything and highlight the results. ifconfig | grep -e "^" -e "192.168". Actually stopped by to see your kubernetes videos. Don't know much about it so looking to learn more. Rocking that beard. 👊👏
@idoeini429
@idoeini429 7 ай бұрын
I need help. I try to display lines with grep “/page1”. But in addition to “/page1” it displays “/page10”, “/page12”, “/page16”… etc. I need “/page1” only. How do I do that?
@hitthetraget8233
@hitthetraget8233 7 ай бұрын
i love that samus is now a "bounty hunger". they must really like bounties huh.
@shishirkrishna2772
@shishirkrishna2772 Жыл бұрын
I have a question, in a folder there are 1000's of files where I need to search for two words which is not in a single sentence but is in a single file. So how can I use the grep command
@olafhuerta2318
@olafhuerta2318 2 жыл бұрын
Great video 👏🏻
@kychemclass5850
@kychemclass5850 2 жыл бұрын
Huion (Graphics tablets) don't make Linux drivers. Kernel hardware support isn't perfect as pen position and where pixels appear on screen are offset. Offset is rectified by doing $ xinput and manually reading the ID when you see a line like... Tablet Monitor Pen Pen (0) which is escorted by the tabbed value "id=20" This id number is used with data from the $ xrandr command which gives the name of the Graphics tablet. My $ xrandr command gave the tablet the name of "HDMI-1" Then you do $ xinput map-to-output 20 HDMI-1 to correct the offset. Your explanation of grep has moved me one step closer to automating the process (p.s. the ID number changes when I use a different graphic tablet, 20" or 16") grep will help me make run a script that can read the current 'id' number and the 'name' to automatically run the map command. Thank you so much Jay. Much appreciated.
@speakyourmind1989
@speakyourmind1989 8 ай бұрын
Awesome . Thanks man
@RDH.85
@RDH.85 Жыл бұрын
Can someone answer this question please? How do you copy and paste the text file from the blog post back into the nano text editor in the Linux command line? Thx
@likithr.n9692
@likithr.n9692 Жыл бұрын
Amazing explanation
@jbuddyman
@jbuddyman Жыл бұрын
Thanks for sharing
@SunsetGraffiti
@SunsetGraffiti 5 ай бұрын
Your character list proves we are of the same creed. Hello, brother.
@PoseidonsRage21
@PoseidonsRage21 6 ай бұрын
What I'm trying to figure out is. how do I isolate negative numbers, I've tried $ grep -e -$ file But it comes up with nothing. There're 5 lines with negative numbers that I have to isolate, but I can't figure out how to
@azizmili3800
@azizmili3800 Жыл бұрын
you are our super hero thank you
@garimasingh8530
@garimasingh8530 6 ай бұрын
Thanks
@juantv9331
@juantv9331 Жыл бұрын
Can you please analyze this. Question? I am eager to learn. Thank you very much. For instance, given the following command: ls --help | grep "dired" Answer Format: Look to the logs file and filter the specific string which starts with CTK? CTK{*****************************************}
@yvanvogel6401
@yvanvogel6401 5 ай бұрын
Thanks a lot !
@tazaccking7467
@tazaccking7467 Жыл бұрын
sir I am using redhat in virtual box and i want to connect my windows host machine to redhat ansible. is it possible ??
@xhulioberberi7823
@xhulioberberi7823 2 жыл бұрын
Please make one tutorial for configuring coTurn in NextCloud Talk.
@toylemmons9320
@toylemmons9320 5 ай бұрын
TY
@SathwikTS-xh9vf
@SathwikTS-xh9vf 11 ай бұрын
is there anything which will help me open that file and point to it instead of just printing that given line ??
@keithmiller9665
@keithmiller9665 2 жыл бұрын
Good video. Thank You!
@yaserfazel4839
@yaserfazel4839 Жыл бұрын
thank you
@YannMetalhead
@YannMetalhead 5 ай бұрын
Good video!
@RalphNgOfficial
@RalphNgOfficial Жыл бұрын
Can I use grep to find for a file ?
@DmitryStepanov-mo6wt
@DmitryStepanov-mo6wt Жыл бұрын
thanks for guide❤
@stefanomarini8468
@stefanomarini8468 2 жыл бұрын
The best teacher ever, thank you!
@shannonbrookshire234
@shannonbrookshire234 Жыл бұрын
awesome video
@bw_merlin
@bw_merlin 2 жыл бұрын
This was great.
@melwinsebastian6384
@melwinsebastian6384 Жыл бұрын
How to search for whitespace using grep
@samirfighter1213
@samirfighter1213 6 ай бұрын
thnx
@DouggieDinosaur
@DouggieDinosaur 2 жыл бұрын
Great video - great sponsor too - Linode is what I've been needing for years (sick of PLESK).
@PS_Tube
@PS_Tube 2 жыл бұрын
Your videos are gem Jay. Thank you.
@fmj_556
@fmj_556 2 жыл бұрын
Your vid’s are awesome! Thanks!!!
@MOHAMEDSOLIMAN-py7kl
@MOHAMEDSOLIMAN-py7kl 11 ай бұрын
thank u
@anandbvs143
@anandbvs143 Жыл бұрын
❤ excellent
@jd5274
@jd5274 6 ай бұрын
nICE FF6 Reference!
@williambaldwin9346
@williambaldwin9346 2 жыл бұрын
Terra should be Esper/ Human ;)
@porcellinoveille
@porcellinoveille Жыл бұрын
Thx so much teaching I.T. and english also lol
@xrafter
@xrafter 2 жыл бұрын
grep is a grep.
@xLuminary
@xLuminary Жыл бұрын
please fix your pictures in the background they are not equidistant. My disappointment is immeasurable and my day is ruined
@abnow1998
@abnow1998 Жыл бұрын
Before running any command, you should have shown that file contents and then could have explained by using grep we can extract / filter out this text from this, poor explanation
Awesome Linux Tools - ncdu, Scan your Hard Disk and free up Space!
9:30
Linux Crash Course - The find command
25:56
Learn Linux TV
Рет қаралды 87 М.
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 10 МЛН
DID A VAMPIRE BECOME A DOG FOR A HUMAN? 😳😳😳
00:56
"كان عليّ أكل بقايا الطعام قبل هذا اليوم 🥹"
00:40
Holly Wolly Bow Arabic
Рет қаралды 12 МЛН
Когда отец одевает ребёнка @JaySharon
00:16
История одного вокалиста
Рет қаралды 14 МЛН
10 Linux Terminal Tips and Tricks to Enhance Your Workflow
44:16
Learn Linux TV
Рет қаралды 96 М.
Where GREP Came From - Computerphile
10:07
Computerphile
Рет қаралды 940 М.
Linux File System/Structure Explained!
15:59
DorianDotSlash
Рет қаралды 4,2 МЛН
You NEED to try Hyprland on Linux RIGHT NOW
24:36
typecraft
Рет қаралды 129 М.
Demystifying the Top Command in Linux | Linux Crash Course Series
27:08
Linux Crash Course - sudo
26:11
Learn Linux TV
Рет қаралды 68 М.
Linux Command-Line Tips & Tricks: Over 15 Examples!
31:37
Learn Linux TV
Рет қаралды 219 М.
Linux Crash Course - Understanding File & Directory Permissions
35:48
Learn Linux TV
Рет қаралды 118 М.
12 GREAT command line programs YOU recommended!
16:25
The Linux Experiment
Рет қаралды 280 М.
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 10 МЛН