filmsbykris.com/wordpress/?p=54 Got Questions? visit FilmsByKris.com/forum Chat with us and learn more FilmsByKris.com/irc
Пікірлер: 59
@JaduSaikia10 жыл бұрын
useful. I always enjoy your videos, good stuff Kris !
@no1sploit5293 жыл бұрын
10 years ago video having lots of great information ❤
@america001413 жыл бұрын
Another great video. I'm loving the bash ones alot. Especially with grep, which is really handy. Tac on the -iRH and it gets pretty sweet too, even though my theory might not be as correct as using the find command with the -exec grep command...but as you said, "There's a thousand ways to do one task in Linux". Thanks Kris for this video...I now can say I have learned something new today!
@pleabargain12 жыл бұрын
Regex is so powerful. Thanks for these videos!
@nasirali-fs3fk7 жыл бұрын
thank you Kris. i learned alot. god bless you.
@DigitalMetal13 жыл бұрын
@crusivol: -r is to do a "recurse" search. If you want to search through files in sub directories.
@JEANLOIZIN7 жыл бұрын
cheers mate. keep up the good work.
@marcoadriancenturion93143 жыл бұрын
very usefull, my grand grandma was occhipinti from argentina
@macky16605 ай бұрын
thank you grep [Kk]ris for the wonderful video, I had 0 knowledge on Regex and this actually gave knowledge on how to use regular expression thank you!
@DigitalMetal5 ай бұрын
Glad it was helpful!
@russelljenkinsfearn13 жыл бұрын
Great tutorial, just what I need, thanks One question. There is another line that begins AND ends with kris. Why didn't it find it?
@tuxsbro13 жыл бұрын
more regex would be great, thanks for the videos
@DigitalMetal12 жыл бұрын
because the ^ says this is the beginning of the line and the $ says this is the end. Meaning, that the content in between has to match the entire line.
@PranitKothari12 жыл бұрын
Great video. I am new to Linux world, and quite afraid of command line. But your video says its possible for me too
@abbadkamel88394 жыл бұрын
thank you kris
@georgigeorgiev22199 жыл бұрын
Thank you. GOD bless you.
@amerikraine34013 жыл бұрын
I'm obsessed with ADB, you made a good video that was helpful. Thanks a lot. Email me if you want to ever exchange knowledge
@vanomel13 жыл бұрын
@John8pie you are absolutely right!
@danieljoldenkamp21704 жыл бұрын
Do more please. Thank you.
@Tubular-Trev5 жыл бұрын
Thanks! Good video
@linuxsport13 жыл бұрын
great video thanks
@crusivol13 жыл бұрын
thx for the quick reply sir but i have another one please i know the man pages can be found in /usr/share/man/ . The files for the man pages pertaining to a program can be found in man1/ and are compressed using gzip how do i copy all the man pages that pertain to md5 to a new directory in ~.
@rzaaeeff9 жыл бұрын
Thank you, Kris!
@DigitalMetal9 жыл бұрын
No Problem. :)
@rzaaeeff9 жыл бұрын
Are you sysadmin, dear? :)
@DigitalMetal9 жыл бұрын
Heydər Rzayev No, I'm a Fire Fighter.
@rzaaeeff9 жыл бұрын
Kris Occhipinti, good luck to you with fire )))
@crusivol13 жыл бұрын
@metalx1000 im at a lost right now. what is the use for the -r flag for grep
@haleyneil9 жыл бұрын
Love the video, very helpful. I am very new to grep and I am trying to display 5 character words from the dictionary with only one duplicate letter and then display the duplicate letter next to it and then display the other letters that we not duplicated next to that. So far i have grep "^[a-z][a-z][a-z][a-z][a-z]$" usr/share/dict/words. Not sure where to go from there though. Would you have any ideas to get me started?
@tracywebb86337 жыл бұрын
Haley Benshaw
@shizyninjarocks7 жыл бұрын
So useful!!! thx thx thx!
@NeoColossus102011 жыл бұрын
What if you have a a variable like such var1="$USER some other stuff" and another variable like such var2='/this/dir'. How could you make a 3rd variable that saves the output of your grep? var3=$(`grep -iq $var1 "${var2}"`) doesn't seem to work. I know the syntax is probably not right here, which is why I'm stuck.
@mehrdadpc8 жыл бұрын
That's Awesome , Like Linux!
@DigitalMetal13 жыл бұрын
@bamdadkhan: I don't know how to do it, but I know it can be done. I'll let you know if I come across anything.
@wnegenennegentig59197 жыл бұрын
thank you, this is what I want to know
@ankursharma14613 жыл бұрын
where should I keep this word.txt file, which directory, I installed Ubuntu on windows from the store
@sagarkarale9 жыл бұрын
hey thanks for the explaining grep in a nutshell. Just a quick question, how can i just parse/select a particular pattern from the entire file. For instance, what will I use to search and extract number "1000". Don't want the entire line that has 1000 in it but just the number 1000. Hope my question makes sense. Thanks again.
@DigitalMetal9 жыл бұрын
Sagar Karale I understand what you are asking, but I don't understand why you would want to do that. Are you trying to get a count of how many times "1000" shows up?
@sagarkarale9 жыл бұрын
Kris Occhipinti Ya that's one use. So I use utilities like nmap/netstat/nslookup but it spits out more result that I need. For instance, you can do a "host facebook.com" on your mac... and need only the IP address (v4 either v6) I'd use a regex along with grep but then it filters the entire line and not just the IP address. Hope that helps.
@DigitalMetal9 жыл бұрын
Sagar Karale Awk might be a good option: ifconfig | awk '/inet addr/{print substr($2,6)}' You can use grep with some other tools: ifconfig |grep -A1 wlan0|tail -n1|cut -d\: -f2|awk '{print $1}' hope these help some
@sagarkarale9 жыл бұрын
Kris Occhipinti ya. i know about other utilities.. was looking if grep has something similar. Thank you for response.
@RanaMuhammadWaqas10 жыл бұрын
Hey thank you for nice tutorial I want to search words in the terminal output like the result of "ps aux | grep netbeans/or-any-app" and for example i just want to look at some string in that output what command i can use to do that ? Thank you in advance !
@DigitalMetal10 жыл бұрын
I'd be glad to help, but I'm not sure I understand the question. Could you re-phrase it? Also, try contacting us here: filmsbykris.com/irc.html
@gaBehcuoDsuoitneterP11 ай бұрын
RegEx playlist?
@gr33nman12 жыл бұрын
You had the line 'kris is kris'. Why didn't grep ^kris$ word.txt pick up this line?
@kevinquinnyo13 жыл бұрын
awesome
@amstvm12 жыл бұрын
Good!!!
@killerbee133b12 жыл бұрын
Give a regular expression that would match any string that begins with A and ends with B. Matches would include: AxxxxB AB ABABABAB
@aldolunabueno2634 Жыл бұрын
7:15 Great trick for erase empty lines: grep -v ^$ file
@DigitalMetal12 жыл бұрын
@philipkthompson: grep " foo" text.txt
@russelljenkinsfearn13 жыл бұрын
@vanomel Thanks!
@vanomel13 жыл бұрын
@russelljenkinsfearn because it search only for line with one word. If you want to find lines like you said you have to put in something like this grep ^kris*kris$