When you wc -w some text of exactly 1000 words you get 1000 as a result. However when you split the same text with grep into individual words you get 1040 words because grep is splitting off the ‘s and ‘t from words like • he’s • there’s • don’t • won’t • etc. when you do • cat input_file | grep -oE '\w{1,} ' Is there a way to make grep behave like wc, or do we have to use a different strategy for getting the right (desired) result? Any ideas?
I would recommend anyone watching this to pause around 20:14 and make a file and add all the information in it, so you can follow along with Regex section.
I am currently learning Linux for my LPI Certification. I was wondering if there was a way I could get all the videos in an ISO to study while at home. I've watched a number of your videos and you are very informative.
This vid is 4 yrs old, and has NO dislikes. That is unheard of on UA-cam! Why? Because it's awesome. Thank you!
When you wc -w some text of exactly 1000 words you get 1000 as a result. However when you split the same text with grep into individual words you get 1040 words because grep is splitting off the ‘s and ‘t from words like
• he’s
• there’s
• don’t
• won’t
• etc.
when you do
• cat input_file | grep -oE '\w{1,} '
Is there a way to make grep behave like wc, or do we have to use a different strategy for getting the right (desired) result?
Any ideas?
About your "Command Lines Pipes" slide, you can use "less file" versus performing "cat file | more" or "cat file | less".
Great video
I have a query what command should I give to list out all users and their files and directory associated with it ?
I would recommend anyone watching this to pause around 20:14 and make a file and add all the information in it, so you can follow along with Regex section.
perfectly excellent
So basically speaking regex are just some little symbols you can add to a command for some text manipulation.
Just in case anyone wonders how to disable the noclobber as I did.
Shell>set +o noclobber
I am currently learning Linux for my LPI Certification. I was wondering if there was a way I could get all the videos in an ISO to study while at home. I've watched a number of your videos and you are very informative.
Can you download lessons once subscribed to your tutorials on udemy?
Hi Paul, I don't think you can download from Udemy but check with them
great video thanx