what's even cooler is look into the history of awk - these foundational core applications have been a part of unix since the 70s. Awk in particular is from 1977.
So much can be done with awk. An instructor of mine showed us an example where someone had written an entire graphic, first-person-shooter game, like DOOM, using just awk.
So many channels I'm subscribed to have featured the Awk command, but only at a basic level. I would love to see a more advanced tutorial on Sed and Awk.
Awk is incredily powerfull command capable of extending bash script's fuctionality far beyond what bash can normaly do by acting as interpreter. Basicly you can write code in programming language say python for example since python has it's roots in c and execute it in bash via wak because awk can interpret it in a way bash can execute it. Here in particular we have awk {print} where awk is executing print action from let's use python which you can't normaly use in bash instead you do same thing with cat. By using awk in your bash script as i said you can writr small program in c or similar lanugage and awk will as a said interpret it so bash can run it.
Awk and Sed are both very useful, even together. I don't even pretend to know much about Awk but I find it fun just to see what output I can get sometimes... Lol Loved the ECHO Echo echo... Nice! I just used the '-F ' yesterday, so you brought a smile to my face, thanks... :-) Just love the Essentials series Jay. Thanks for the video! LLAP
👍👍👍👍👍THANK You, Jay! Great foundation for awk! Have been a topic that I wanted to learn; now I am more confident to explore. Execellent learning experience. Once again, thanks!
Why the need for both single-quote and braces ? Seems that one or the other should suffice for delimiting the “script” part of the command for awk. Is there a logical reason to use both that I’m missing here ? Seems excessive typing.
Hey Jay, amazing work as always. You are my Master Splinter. I'm guessing that bracket expansion works here as well. I was curious if you thought a dedicated video about bracket expansion would be something that would interest you. Also... A video about Regex would be really neat. I think your approach to teaching works especially well for me and it would be pretty sweet. Also, I should probably check your channel to see if that video already exists. Thanks, Jay!
How would you tell awk to print a range of fields? For example, if you wanted it to print fields $3 through $8? I understand that you can type out $3,$4,$5, etc. But if the range is large, that would be a lot of typing. I am assuming that this is easily done, once you know how to do it. But I cannot figure it out. Please advise. Thank you.
Yes. You can set the "-F" separator as an expression. >printf "this is plain:text" | awk -F'[ :]' '{print $1,$2,$3,$4}' >this is plain text >printf "this=is=plain:text" | awk -F'[=:]' '{print $1,$2,$3,$4}' >this is plain text -GNU AWK 4.1.4 -Debian 10.10
Video starts 01:26 I don't mean to hurt the channel, but seriously, There's a RUclips ad before the video starts. then there's a 1+ min Linode ad before you say hi, then there's a floating RUclips ad box over the video. Things like this scare away the followers, and make people prefer to use adblockers and other solutions...
The problem is that advertisers like linode comes in and pays for a certain length of time and pays more than the youtube adsense ever will for a Linux channel
Thanks for the skip button. You can try using the google chrome extension for an ad blocker. It gets rid of ads before and during the video, but it will not be able to do anything against the Linode add at the beginning of the video (obviously).
Wow! So many minutes, so little information. 16 minutes of lifeless talk to demonstrate how to change a field separator and select columns. Three minutes would have been more than enough.
You can choose to copy an instructor's lesson or you can learn the lesson and apply it towards something else. Learning is a process that requires self-motivation. Your reaction is a clear indication that you don't wish to learn but rather to repeat rotes.
I bet you're a delight to be within 20 feet of. You could have spent the time you wasted on an empty complaint looking for something more to your liking. I would advise doing so in future moments of disappointment. Just move on. You will be happier in general. I promise. (Also sorry for the snide comment about proximity. It's hard not to respond negatively to negativities.)
Your humor doesn't usually do much for me. But I nearly cried at the "echo" joke. From you it's so unexpected that it got me in the feels
what's even cooler is look into the history of awk - these foundational core applications have been a part of unix since the 70s. Awk in particular is from 1977.
I bet the commands took a bit longer to execute in 1977 than the milliseconds that they take today!
So much can be done with awk. An instructor of mine showed us an example where someone had written an entire graphic, first-person-shooter game, like DOOM, using just awk.
So many channels I'm subscribed to have featured the Awk command, but only at a basic level. I would love to see a more advanced tutorial on Sed and Awk.
@Unnat Shaneshwar no it isn't.
My AWK video is over 2 hours long.
Check out awk hack the planet
I appreciated the "echoed this sentence echoed this sentence" :-)
Again, i didnt catch it, what was echoed?
😆
Me too
@@rodrigomonteiro9086 11:03
Nice intro tutorial. One small correction though: $0 represents the current record/row being processed, not the entire contents of the file.
I'm a Linode customer, and he's totally right! I highly recommend!
11:04 well that was.. awkward.
Aight, I'll see myself out.
Awk seems like THE tool, the MUST HAVE tool.
For copy-pasting:
leonardo blue leader
raphael red hothead
michelangelo orange party-animal
donatello purple geek
Awk is incredily powerfull command capable of extending bash script's fuctionality far beyond what bash can normaly do by acting as interpreter. Basicly you can write code in programming language say python for example since python has it's roots in c and execute it in bash via wak because awk can interpret it in a way bash can execute it. Here in particular we have awk {print} where awk is executing print action from let's use python which you can't normaly use in bash instead you do same thing with cat. By using awk in your bash script as i said you can writr small program in c or similar lanugage and awk will as a said interpret it so bash can run it.
Awk and Sed are both very useful, even together. I don't even pretend to know much about Awk but I find it fun just to see what output I can get sometimes... Lol Loved the ECHO Echo echo... Nice!
I just used the '-F ' yesterday, so you brought a smile to my face, thanks... :-)
Just love the Essentials series Jay.
Thanks for the video!
LLAP
👍👍👍👍👍THANK You, Jay!
Great foundation for awk!
Have been a topic that I wanted to learn; now I am more confident to explore.
Execellent learning experience.
Once again, thanks!
Excellent tutorial, super simple and easy to follow!
That echo this sentence edit was really funny 😂, love it
Keep going jay 💪 🙏
For simple tasks like that, you can use the cut command.
11:04 major glitch in the matrix! in the matrix... in the matrix.
Thanks for this episode on awk , can we have a another one regarding using awk against logs like switch log , server logs ..to do troubleshooting
Thanks @jay
I requested this video at official site. I am really happy to see that you have made videos on it really fast
Really appreciate it ☺️
Why the need for both single-quote and braces ? Seems that one or the other should suffice for delimiting the “script” part of the command for awk. Is there a logical reason to use both that I’m missing here ? Seems excessive typing.
Thanks!! awk is awmesome more videos with awk please
8:40 I was sure he was going to choose the final field, totally laughed out loud at the actual result/comment 😄
11:05 echo causes also audio echo :-)
yes :)
was looking for this comment
So I'm guessing awk is there to work with csv files. Right?
TMNT fan? Have you seen Usagi Yojimbo? Wandering Samurai rabbit.
great presentation and teaching. I like your sense of humour also, like in echo echo , very clever, but only few can notice that
Jay: Is that the new Darter Pro next to the Lenovo? Is there a review coming?
Hey Jay, amazing work as always. You are my Master Splinter.
I'm guessing that bracket expansion works here as well. I was curious if you thought a dedicated video about bracket expansion would be something that would interest you.
Also... A video about Regex would be really neat. I think your approach to teaching works especially well for me and it would be pretty sweet. Also, I should probably check your channel to see if that video already exists.
Thanks, Jay!
Thank you very much for this lesson.
Thank you so much Jay
we need more but good job ... oldtony
11.03 echo ...echo..echo haha. i noticed it thansks a lot for doing such efforts.
How would you tell awk to print a range of fields?
For example, if you wanted it to print fields $3 through $8?
I understand that you can type out $3,$4,$5, etc. But if the range is large, that would be a lot of typing.
I am assuming that this is easily done, once you know how to do it. But I cannot figure it out.
Please advise.
Thank you.
@Terminalforlife (LL) Your explanation, although appreciated, is too complicated for me.
create a for loop and print each field:
awk '{
for (i = 3; i
Thank you, Jay.
love your content.
Not your best video....which really surprises me!
Brilliant explanation, thank you!
Thank you.
What is the theme of zsh/bash in terminal on preview pic?
THNX!
great content as always
Great explaination !
Gracias maestro
very helpful thanks
Doing gods work out here I see 🙏
Great episode, ty
Great Job -- please more more - oldtony
Is bash coming up?
thank you for the tutorial :)
Good video!
I see tmnt, I auto like.. another excellent video Jay.. turtle powah!
A YT ad right after your own?
Nop!
THANKS MAN !!!
Is there a way to select multiple values as a field separator for the "-F" parameter? (For example "spaces" AND ":")
Yes. You can set the "-F" separator as an expression.
>printf "this is plain:text" | awk -F'[ :]' '{print $1,$2,$3,$4}'
>this is plain text
>printf "this=is=plain:text" | awk -F'[=:]' '{print $1,$2,$3,$4}'
>this is plain text
-GNU AWK 4.1.4
-Debian 10.10
I always thought Michelangelo was yellow and not orange.
Tmnt still popular!
4105 Schmeler Expressway
Thanks master
thanks
Video starts 01:26
I don't mean to hurt the channel, but seriously, There's a RUclips ad before the video starts. then there's a 1+ min Linode ad before you say hi, then there's a floating RUclips ad box over the video.
Things like this scare away the followers, and make people prefer to use adblockers and other solutions...
The problem is that advertisers like linode comes in and pays for a certain length of time and pays more than the youtube adsense ever will for a Linux channel
Thanks for the skip button.
You can try using the google chrome extension for an ad blocker. It gets rid of ads before and during the video, but it will not be able to do anything against the Linode add at the beginning of the video (obviously).
@@juliobanda931 you can use sponsor block extension for that.
there is also ublock origin tbh
or you can play a video directly via mpv iirc
I use Adblock plus and I haven´t seen any ad for years,
but still, He is teaching for free, you should be thankful
Thanks!
awesome
Let’s hunt some AWK
3:33 I actually came here only to hear about the Ninja Turtles :(
what do u mean what is this awk all about i thought this was a ninja turtles video
7892 Baumbach Point
...it indexes at 1? my 0-based-indexing sensibilities are horrified.
Floy Stravenue
Thank You, You explained it much clearer and better than the other $ echo CHannels CHannels CHannels CHannels CHannels.
Cool!
echo "are you ok!"|awk '{print $3}'
echo "are you ok\!"|awk '{print $3}'
Gertrude Manors
'echo this sentence' 😅
005 Andreane Fords
6417 Genevieve Trail
467 Schmitt Brook
851 Theresia Fields
Syble Overpass
Ashton Crossroad
Awk tuah
Darby Station
Jay, watch out man you're putting on quite a bit of weight :) Just watched an old video of yours and you were super skinny
Lilian Views
123 Darius Point
Nice joke about "echoing the sentence" ))
Allie Mall
Willms Spur
56547 Nolan Track
Schaden Ville
Too slow, too simple, for my taste.
too poor explanaition of this comand
Wow! So many minutes, so little information. 16 minutes of lifeless talk to demonstrate how to change a field separator and select columns. Three minutes would have been more than enough.
You can choose to copy an instructor's lesson or you can learn the lesson and apply it towards something else.
Learning is a process that requires self-motivation.
Your reaction is a clear indication that you don't wish to learn but rather to repeat rotes.
I bet you're a delight to be within 20 feet of. You could have spent the time you wasted on an empty complaint looking for something more to your liking. I would advise doing so in future moments of disappointment. Just move on. You will be happier in general. I promise.
(Also sorry for the snide comment about proximity. It's hard not to respond negatively to negativities.)
41948 Jennifer Squares