0:00 -- Intro 0:39 -- Outline 1:34 -- What is AWK? 3:25-- Why learn AWK? 4:27 -- History AWK 6:46 -- Super simple AWK programs 8:15 -- "Hello World" in AWK 8:38 -- Running AWK program 10:49 -- AWK structure 15:04 -- AWK Patterns overview 16:09 -- Summary of Patterns 19:42 -- Operators 20:43 -- String-matching patterns 22:28 -- Escape sequences 22:48 -- Range Patterns 24:12 -- Pattern summary table 25:42 -- AWK Actions overview 27:34 -- AWK Statements 29:00 -- simplest AWK programs 32:50 -- Built-in Variables (✨Magic variables) -- Dive a Little Deeper (functions, pips) -- Example Programs
@tristansnow Жыл бұрын
You are a gifted teacher. Thank you so much for taking the time to make this update. Subscribed!
@varshneydevansh10 ай бұрын
I have ADHD-c and within first 2 minutes you caught my attention now I can say I will watch this completely. Thanks, you're a great teacher.
@pmarreck9 ай бұрын
what does the hyphen-c stand for?
@AmedeoZittiАй бұрын
Love the reference to 1995 Hackers :D
@gabrielginsberg57157 ай бұрын
Thank you so much, I honestly felt like I was slamming my face into a brick wall trying to learn awk. This video took me from not understanding it at its core to feeling like I fully grasped it at a relatively in depth level. I truly appreciate you taking the time to record and upload this.
@amorsmor85288 ай бұрын
you made awk very easy for me to understand thanks for that great video
@Amon-01ja6 ай бұрын
Great teacher, thank you so much for this informative video!
@EdDrain Жыл бұрын
I am going to recommend this video on Exercism! Great video!
@test99947 Жыл бұрын
you really have to be a hero to make an hour long talk about awk. thanks man
@gatty.9 ай бұрын
Really enjoying your awesome video! And you have an easy to listen to voice! Great tone, great enthusiasm. I'm learning a lot from this! Just a slight correction for 43:50 ish, with ++ and --. You mentioned 'after the fact' twice. Just for those listening, when it's presented before, it'll update and use the updated value (in case of print, it'll print the update). Where as, postfix it'll print then update. Correct? Pretty sure.
@brunoromerogonzalez9026 Жыл бұрын
Thank you so much!!!
@jasnarmstrng9 ай бұрын
Superb intro!
@Brewbug9 ай бұрын
Especially the dad joke at 0:28 😅
@Brewbug9 ай бұрын
Especially the dad joke at 0:28 😅
@pewolo Жыл бұрын
This video was all I needed to master AWK!
@lukurraАй бұрын
great video, I liked it! a little criticism - audio level is quite low. youtube ads blast my ears off here. increasing levels and compressing would render it more comfortable.
@odseverus Жыл бұрын
This is great! Thanks for sharing! Greetings from 🇧🇷
@tablett8351 Жыл бұрын
Wow, realy great! Thank you and your coworker for this good video.
@Hannibal2162311 ай бұрын
Thank you
@philtoa334 Жыл бұрын
Very good.
@gitgosc7075 Жыл бұрын
great!
@divest6527 Жыл бұрын
Thank you for posting this, I've been "seeing" awk around for many many years but never tried to learn it from first principles. This video piqued my interest :)
@alurma Жыл бұрын
Thanks
@Desi-qw9fc Жыл бұрын
Where did you get the reference tables, like at 50:30?
@freedom_ben Жыл бұрын
Those came from the Aho/Kernighan/Weinberger book "The Awk Programming Language"! The whole book is on the internet archive here if you'd like it: ia803404.us.archive.org/0/items/pdfy-MgN0H1joIoDVoIC7/The_AWK_Programming_Language.pdf
@artfol2 Жыл бұрын
good talk, please use mouse pointer to point where you at in the slide.
@davidh.4944 Жыл бұрын
I just posted this on the first version of this video, before I discovered this updated one existed. But the point is the same, so I'm repeating it here. The "{$1=$1}1" command at the end doesn't just remove initial whitespace. By default awk removes _all_ of the whitespace between and around _every_ field, while the print command only re-inserts a single space between fields. So it doesn't just remove initial whitespace, it also removes trailing whitespace, and collapses all intra-string whitespace into single spaces. in other words, say goodbye to all of your tabs and other formatting. To definitively remove just the initial whitespace, you should use the sub (or gsub) substitution function and regex match it (they operate on $0 by default). awk "{ sub( /^\s*/ , "" ) }1" Frankly, in this case I think sed is a better choice: sed 's/^[ \t]*//'
@freedom_ben Жыл бұрын
Thanks David, you're absolutely right! That's super helpful.
@pajeetsingh8 ай бұрын
The longer the tutorial the better it is.
@ChrisCox-wv7oo Жыл бұрын
When you explained prefix postfix, you said it would be evaluated after the fact in both cases. Prefix : Inc/Decr before the variables value is used in the expression Postfix : Inc/Decr after the variable value is used in the expression a=0 print ++a // 1 will be printed a=0 print a++ // 0 will be printed In both cases, the value of a will be 1 after the print is performed.
@freedom_ben Жыл бұрын
Thanks!
@r.rousset Жыл бұрын
Thanks, for the update. Hopefully this will make my life less (AWK)ward.