No video

Linux Crash Course - awk

  Рет қаралды 95,898

Learn Linux TV

Learn Linux TV

Күн бұрын

In this episode of Linux Crash Course, we take a look at the awk command. With awk, you can leverage its power for the "manipulation of data files, text retrieval and processing, and for prototyping and experimenting with algorithms". In this particular video, we'll cover the basics of awk to get you started.
☁️ Support LearnLinuxTV and Set up your own cloud server with Akamai Connected Cloud:
➡️ learnlinux.lin...
LearnLinuxTV Sites
🐧 Main site:
➡️ www.learnlinux.tv
🐧 LearnLinuxTV Community:
➡️ community.lear...
Support LearnLinuxTV (commission earned)
📖 Check out Jay's latest book, Mastering Ubuntu Server 4th Edition. Covers Ubuntu 22.04!
➡️ ubuntuserverbo...
🙌 Support me on Patreon and get early access to new content!
➡️ learnlinux.lin...
🛒 Affiliate store for Linux compatible hardware/accessories:
➡️ learnlinux.lin...
💻 Check out the Tiny Pilot KVM for your Homelab:
➡️ learnlinux.lin...
About Me
🐦 Follow me on Twitter!
➡️ learnlinux.lin...
📘 FAQ
• What is a "Distribution" of Linux? ➜ linux.video/wh...
• What is a "Desktop Environment"? ➜ linux.video/de...
• Which Linux Distro should I use on my Server? ➜ linux.video/wh...
• How do I create USB install media? ➜ linux.video/in...
• How do I create multi-boot USB media? ➜ linux.video/ve...
• How do I connect to a Linux server via SSH? ➜ linux.video/us...
• How do I exit vim? ➜ linux.video/vim
• How do I use APT? ➜ linux.video/apt
• How do I use DNF? ➜ linux.video/dnf
• How do I use pacman? ➜ linux.video/pa...
• How do I use zypper? ➜ linux.video/zy...
• What the heck is a "Flatpak"? ➜ linux.video/fl...
• What is a "Snap" package? ➜ linux.video/snap
• How do I install Arch Linux? ➜ linux.video/in...
• How do I configure SSH on my server? linux.video/ss...
• How do I install updates? ➜ linux.video/up...
• What server tweaks should I implement? ➜ linux.video/ev...
• How do I use LVM? ➜ linux.video/lvm
• How do I use Git? ➜ linux.video/git
• When will the "Year of the Linux Desktop" Happen? ➜ linux.video/yotld
• Do you have a sense of humor? ➜ linux.video/lol
#Linux #CLI #Awk

Пікірлер: 93
@meowcula
@meowcula 3 жыл бұрын
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.
@nodidog
@nodidog 2 жыл бұрын
I bet the commands took a bit longer to execute in 1977 than the milliseconds that they take today!
@scottspa74
@scottspa74 Жыл бұрын
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.
@SlideRSB
@SlideRSB 3 жыл бұрын
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.
@SlideRSB
@SlideRSB 3 жыл бұрын
@Unnat Shaneshwar no it isn't.
@LowOrbitFlux
@LowOrbitFlux Жыл бұрын
My AWK video is over 2 hours long.
@ramosman0469
@ramosman0469 6 ай бұрын
Check out awk hack the planet
@thenargles
@thenargles 3 жыл бұрын
I appreciated the "echoed this sentence echoed this sentence" :-)
@rodrigomonteiro9086
@rodrigomonteiro9086 2 жыл бұрын
Again, i didnt catch it, what was echoed? 😆
@md.fazlerabbimashru4808
@md.fazlerabbimashru4808 2 жыл бұрын
Me too
@riptrivia2470
@riptrivia2470 5 ай бұрын
@@rodrigomonteiro9086 11:03
@telmomarinho2729
@telmomarinho2729 3 жыл бұрын
I'm a Linode customer, and he's totally right! I highly recommend!
@BrucesWorldofStuff
@BrucesWorldofStuff 3 жыл бұрын
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
@Yggdra666
@Yggdra666 3 жыл бұрын
11:04 well that was.. awkward. Aight, I'll see myself out.
@bobwong8268
@bobwong8268 3 жыл бұрын
👍👍👍👍👍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!
@stephan6530
@stephan6530 3 жыл бұрын
Nice intro tutorial. One small correction though: $0 represents the current record/row being processed, not the entire contents of the file.
@abhishekkumar1917
@abhishekkumar1917 3 жыл бұрын
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 ☺️
@TheEmperorXavier
@TheEmperorXavier 4 ай бұрын
That echo this sentence edit was really funny 😂, love it
@Seedlinux
@Seedlinux 5 ай бұрын
Excellent tutorial, super simple and easy to follow!
@zeppelinmexicano
@zeppelinmexicano 6 ай бұрын
Awk seems like THE tool, the MUST HAVE tool.
@raughboy188
@raughboy188 4 ай бұрын
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.
@muntazirsaad1603
@muntazirsaad1603 3 жыл бұрын
Keep going jay 💪 🙏
@mlarktar
@mlarktar 3 жыл бұрын
For copy-pasting: leonardo blue leader raphael red hothead michelangelo orange party-animal donatello purple geek
@Godmil
@Godmil 4 ай бұрын
8:40 I was sure he was going to choose the final field, totally laughed out loud at the actual result/comment 😄
@asaskald
@asaskald 2 жыл бұрын
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!
@DaveSomething
@DaveSomething 3 жыл бұрын
11:04 major glitch in the matrix! in the matrix... in the matrix.
@kawan5851
@kawan5851 3 ай бұрын
love your content.
@Redwane-Music
@Redwane-Music 2 жыл бұрын
great presentation and teaching. I like your sense of humour also, like in echo echo , very clever, but only few can notice that
@cpubug
@cpubug 4 ай бұрын
thank you for the tutorial :)
@pranavdesai-xv9qw
@pranavdesai-xv9qw 8 ай бұрын
11.03 echo ...echo..echo haha. i noticed it thansks a lot for doing such efforts.
@mondskiez309
@mondskiez309 3 жыл бұрын
I see tmnt, I auto like.. another excellent video Jay.. turtle powah!
@albertkenzie8249
@albertkenzie8249 3 ай бұрын
very helpful thanks
@alexplane3279
@alexplane3279 3 жыл бұрын
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
@fordprefect7779
@fordprefect7779 3 жыл бұрын
11:05 echo causes also audio echo :-)
@drishalballaney6590
@drishalballaney6590 3 жыл бұрын
yes :)
@sayedsareem
@sayedsareem Жыл бұрын
was looking for this comment
@mamadoumansour7564
@mamadoumansour7564 3 жыл бұрын
Thanks!! awk is awmesome more videos with awk please
@abdelhamidbensadoun
@abdelhamidbensadoun 2 жыл бұрын
Thank you so much Jay
@mason8714
@mason8714 Жыл бұрын
great content as always
@MarcoVinci
@MarcoVinci Жыл бұрын
Thank you very much for this lesson.
@_Verac
@_Verac 5 ай бұрын
So I'm guessing awk is there to work with csv files. Right?
@murtadha96
@murtadha96 Жыл бұрын
Brilliant explanation, thank you!
@AnzanHoshinRoshi
@AnzanHoshinRoshi 3 жыл бұрын
Thank you, Jay.
@CraftySmurf35
@CraftySmurf35 Жыл бұрын
Great explaination !
@tonyfreehauf4463
@tonyfreehauf4463 Жыл бұрын
we need more but good job ... oldtony
@YannMetalhead
@YannMetalhead 3 ай бұрын
Good video!
@robertmurphy9320
@robertmurphy9320 3 жыл бұрын
Jay: Is that the new Darter Pro next to the Lenovo? Is there a review coming?
@dragonsage6909
@dragonsage6909 2 жыл бұрын
Great episode, ty
@gaiusbaltar7122
@gaiusbaltar7122 3 жыл бұрын
For simple tasks like that, you can use the cut command.
@NoEgg4u
@NoEgg4u 3 жыл бұрын
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.
@NoEgg4u
@NoEgg4u 3 жыл бұрын
@Terminalforlife (LL) Your explanation, although appreciated, is too complicated for me.
@thisvintagegirl
@thisvintagegirl 11 ай бұрын
create a for loop and print each field: awk '{ for (i = 3; i
@ABDULKARIMHOMAIDI
@ABDULKARIMHOMAIDI 8 ай бұрын
THANKS MAN !!!
@JeanFrancoCaringi
@JeanFrancoCaringi 3 жыл бұрын
Gracias maestro
@antonkovalev9681
@antonkovalev9681 3 жыл бұрын
What is the theme of zsh/bash in terminal on preview pic? THNX!
@tonyfreehauf4463
@tonyfreehauf4463 Жыл бұрын
Great Job -- please more more - oldtony
@Lukiel666
@Lukiel666 3 жыл бұрын
TMNT fan? Have you seen Usagi Yojimbo? Wandering Samurai rabbit.
@userhandle3378
@userhandle3378 3 жыл бұрын
Doing gods work out here I see 🙏
@GooogleGoglee
@GooogleGoglee 3 жыл бұрын
Is there a way to select multiple values as a field separator for the "-F" parameter? (For example "spaces" AND ":")
@plangephace
@plangephace 3 жыл бұрын
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
@sivaramakrishnachitithoti839
@sivaramakrishnachitithoti839 Жыл бұрын
Thanks master
@amortalbeing
@amortalbeing Жыл бұрын
thanks
@menthusajaya
@menthusajaya 3 жыл бұрын
Thanks!
@jonatalovrin6285
@jonatalovrin6285 8 ай бұрын
Is it a programming language?
@bobert6686
@bobert6686 4 ай бұрын
Yes
@srsr6099
@srsr6099 3 жыл бұрын
Is bash coming up?
@rodrigomonteiro9086
@rodrigomonteiro9086 2 жыл бұрын
Tmnt still popular!
@khomo12
@khomo12 2 жыл бұрын
Cool!
@johnmartintucker
@johnmartintucker Жыл бұрын
Not your best video....which really surprises me!
@ErnestoPozzoni
@ErnestoPozzoni 2 жыл бұрын
3:33 I actually came here only to hear about the Ninja Turtles :(
@pepeshopping
@pepeshopping 3 жыл бұрын
A YT ad right after your own? Nop!
@johanferozco
@johanferozco 3 жыл бұрын
I always thought Michelangelo was yellow and not orange.
@citywitt3202
@citywitt3202 3 жыл бұрын
Let’s hunt some AWK
@yongzechen2139
@yongzechen2139 Жыл бұрын
echo "are you ok!"|awk '{print $3}'
@yongzechen2139
@yongzechen2139 Жыл бұрын
echo "are you ok\!"|awk '{print $3}'
@doge1931
@doge1931 Жыл бұрын
what do u mean what is this awk all about i thought this was a ninja turtles video
@samitee8336
@samitee8336 11 ай бұрын
'echo this sentence' 😅
@AriannaEuryaleMusic
@AriannaEuryaleMusic 3 жыл бұрын
Thank You, You explained it much clearer and better than the other $ echo CHannels CHannels CHannels CHannels CHannels.
@immutablecantrip
@immutablecantrip 3 жыл бұрын
...it indexes at 1? my 0-based-indexing sensibilities are horrified.
@name1355_0ne
@name1355_0ne 3 жыл бұрын
Nice joke about "echoing the sentence" ))
@bluekeybo
@bluekeybo 3 жыл бұрын
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
@RandomNullpointer
@RandomNullpointer 3 жыл бұрын
Video starts 01:26 I don't mean to hurt the channel, but seriously, There's a KZfaq ad before the video starts. then there's a 1+ min Linode ad before you say hi, then there's a floating KZfaq ad box over the video. Things like this scare away the followers, and make people prefer to use adblockers and other solutions...
@nevoyu
@nevoyu 3 жыл бұрын
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
@juliobanda931
@juliobanda931 3 жыл бұрын
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).
@Kekimus
@Kekimus 3 жыл бұрын
@@juliobanda931 you can use sponsor block extension for that.
@drishalballaney6590
@drishalballaney6590 3 жыл бұрын
there is also ublock origin tbh or you can play a video directly via mpv iirc
@AriannaEuryaleMusic
@AriannaEuryaleMusic 3 жыл бұрын
I use Adblock plus and I haven´t seen any ad for years, but still, He is teaching for free, you should be thankful
@stephenbaum9150
@stephenbaum9150 8 ай бұрын
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.
@asaskald
@asaskald Ай бұрын
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.
@unbekannter_Nutzer
@unbekannter_Nutzer 3 жыл бұрын
Too slow, too simple, for my taste.
@Euzahad
@Euzahad 2 жыл бұрын
too poor explanaition of this comand
Linux Crash Course - Managing Groups
23:43
Learn Linux TV
Рет қаралды 44 М.
Linux Crash Course - The sed Command
15:25
Learn Linux TV
Рет қаралды 120 М.
لااا! هذه البرتقالة مزعجة جدًا #قصير
00:15
One More Arabic
Рет қаралды 51 МЛН
I'm Excited To see If Kelly Can Meet This Challenge!
00:16
Mini Katana
Рет қаралды 35 МЛН
Box jumping challenge, who stepped on the trap? #FunnyFamily #PartyGames
00:31
Family Games Media
Рет қаралды 31 МЛН
Learning Awk Is Essential For Linux Users
20:02
DistroTube
Рет қаралды 294 М.
EVERYONE Needs to Learn a Little Bit of AWK!
16:29
Gary Explains
Рет қаралды 396 М.
Linux Crash Course - Symbolic Links
30:07
Learn Linux TV
Рет қаралды 60 М.
How The 'awk' Command Made Me A 10x Engineer
10:40
RobertElderSoftware
Рет қаралды 171 М.
Learning Sed Is Beneficial For Linux Users
19:27
DistroTube
Рет қаралды 83 М.
Linux Crash Course - Scheduling Tasks with Cron
19:25
Learn Linux TV
Рет қаралды 106 М.
How Does Linux Boot Process Work?
4:44
ByteByteGo
Рет қаралды 608 М.
Linux Crash Course - The cut Command
14:25
Learn Linux TV
Рет қаралды 19 М.
Linux File System/Structure Explained!
15:59
DorianDotSlash
Рет қаралды 4,1 МЛН
لااا! هذه البرتقالة مزعجة جدًا #قصير
00:15
One More Arabic
Рет қаралды 51 МЛН