Linux Crash Course - awk

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024
  • НаукаНаука

Комментарии • 115

  • @Shizaru2723
    @Shizaru2723 Месяц назад +2

    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

  • @meowcula
    @meowcula 3 года назад +39

    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 года назад +2

      I bet the commands took a bit longer to execute in 1977 than the milliseconds that they take today!

  • @scottspa74
    @scottspa74 Год назад +10

    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 года назад +43

    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 Год назад +3

      My AWK video is over 2 hours long.

    • @ramosman0469
      @ramosman0469 9 месяцев назад

      Check out awk hack the planet

  • @thenargles
    @thenargles 3 года назад +25

    I appreciated the "echoed this sentence echoed this sentence" :-)

  • @stephan6530
    @stephan6530 3 года назад +9

    Nice intro tutorial. One small correction though: $0 represents the current record/row being processed, not the entire contents of the file.

  • @telmomarinho2729
    @telmomarinho2729 3 года назад +7

    I'm a Linode customer, and he's totally right! I highly recommend!

  • @Yggdra666
    @Yggdra666 3 года назад +13

    11:04 well that was.. awkward.
    Aight, I'll see myself out.

  • @zeppelinmexicano
    @zeppelinmexicano 9 месяцев назад

    Awk seems like THE tool, the MUST HAVE tool.

  • @mlarktar
    @mlarktar 3 года назад +1

    For copy-pasting:
    leonardo blue leader
    raphael red hothead
    michelangelo orange party-animal
    donatello purple geek

  • @raughboy188
    @raughboy188 7 месяцев назад

    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.

  • @BrucesWorldofStuff
    @BrucesWorldofStuff 3 года назад +17

    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

  • @bobwong8268
    @bobwong8268 3 года назад +2

    👍👍👍👍👍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!

  • @Seedlinux
    @Seedlinux 9 месяцев назад

    Excellent tutorial, super simple and easy to follow!

  • @TheEmperorXavier
    @TheEmperorXavier 7 месяцев назад

    That echo this sentence edit was really funny 😂, love it

  • @muntazirsaad1603
    @muntazirsaad1603 3 года назад +2

    Keep going jay 💪 🙏

  • @gaiusbaltar7122
    @gaiusbaltar7122 3 года назад +3

    For simple tasks like that, you can use the cut command.

  • @DaveSomething
    @DaveSomething 3 года назад +8

    11:04 major glitch in the matrix! in the matrix... in the matrix.

  • @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

  • @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 ☺️

  • @richardwalters9249
    @richardwalters9249 2 месяца назад

    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.

  • @mamadoumansour7564
    @mamadoumansour7564 3 года назад

    Thanks!! awk is awmesome more videos with awk please

  • @Godmil
    @Godmil 7 месяцев назад

    8:40 I was sure he was going to choose the final field, totally laughed out loud at the actual result/comment 😄

  • @fordprefect7779
    @fordprefect7779 3 года назад +6

    11:05 echo causes also audio echo :-)

  • @_Verac
    @_Verac 8 месяцев назад

    So I'm guessing awk is there to work with csv files. Right?

  • @Lukiel666
    @Lukiel666 3 года назад +2

    TMNT fan? Have you seen Usagi Yojimbo? Wandering Samurai rabbit.

  • @Redwane-Music
    @Redwane-Music 3 года назад

    great presentation and teaching. I like your sense of humour also, like in echo echo , very clever, but only few can notice that

  • @robertmurphy9320
    @robertmurphy9320 3 года назад

    Jay: Is that the new Darter Pro next to the Lenovo? Is there a review coming?

  • @asaskald
    @asaskald 2 года назад +3

    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!

  • @MarcoVinci
    @MarcoVinci Год назад

    Thank you very much for this lesson.

  • @abdelhamidbensadoun
    @abdelhamidbensadoun 2 года назад

    Thank you so much Jay

  • @tonyfreehauf4463
    @tonyfreehauf4463 Год назад

    we need more but good job ... oldtony

  • @pranavdesai-xv9qw
    @pranavdesai-xv9qw 11 месяцев назад

    11.03 echo ...echo..echo haha. i noticed it thansks a lot for doing such efforts.

  • @NoEgg4u
    @NoEgg4u 3 года назад +1

    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 Год назад

      create a for loop and print each field:
      awk '{
      for (i = 3; i

  • @AnzanHoshinRoshi
    @AnzanHoshinRoshi 3 года назад

    Thank you, Jay.

  • @kawan5851
    @kawan5851 6 месяцев назад

    love your content.

  • @johnmartintucker
    @johnmartintucker Год назад

    Not your best video....which really surprises me!

  • @murtadha96
    @murtadha96 2 года назад

    Brilliant explanation, thank you!

  • @k.chriscaldwell4141
    @k.chriscaldwell4141 2 месяца назад

    Thank you.

  • @antonkovalev9681
    @antonkovalev9681 3 года назад

    What is the theme of zsh/bash in terminal on preview pic?
    THNX!

  • @mason8714
    @mason8714 2 года назад

    great content as always

  • @CraftySmurf35
    @CraftySmurf35 2 года назад

    Great explaination !

  • @JeanFrancoCaringi
    @JeanFrancoCaringi 3 года назад +1

    Gracias maestro

  • @albertkenzie8249
    @albertkenzie8249 6 месяцев назад

    very helpful thanks

  • @userhandle3378
    @userhandle3378 3 года назад +1

    Doing gods work out here I see 🙏

  • @dragonsage6909
    @dragonsage6909 2 года назад

    Great episode, ty

  • @tonyfreehauf4463
    @tonyfreehauf4463 Год назад

    Great Job -- please more more - oldtony

  • @srsr6099
    @srsr6099 3 года назад

    Is bash coming up?

  • @cpubug
    @cpubug 7 месяцев назад

    thank you for the tutorial :)

  • @YannMetalhead
    @YannMetalhead 6 месяцев назад

    Good video!

  • @mondskiez309
    @mondskiez309 3 года назад

    I see tmnt, I auto like.. another excellent video Jay.. turtle powah!

  • @pepeshopping
    @pepeshopping 3 года назад

    A YT ad right after your own?
    Nop!

  • @ABDULKARIMHOMAIDI
    @ABDULKARIMHOMAIDI Год назад

    THANKS MAN !!!

  • @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 года назад +1

      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

  • @johanferozco
    @johanferozco 3 года назад

    I always thought Michelangelo was yellow and not orange.

  • @rodrigomonteiro9086
    @rodrigomonteiro9086 2 года назад

    Tmnt still popular!

  • @BartholomewMaud
    @BartholomewMaud 2 месяца назад

    4105 Schmeler Expressway

  • @sivaramakrishnachitithoti839
    @sivaramakrishnachitithoti839 Год назад

    Thanks master

  • @amortalbeing
    @amortalbeing Год назад

    thanks

  • @RandomNullpointer
    @RandomNullpointer 3 года назад +2

    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...

    • @nevoyu
      @nevoyu 3 года назад +6

      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 года назад +1

      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 года назад +3

      @@juliobanda931 you can use sponsor block extension for that.

    • @drishalballaney
      @drishalballaney 3 года назад +1

      there is also ublock origin tbh
      or you can play a video directly via mpv iirc

    • @AriannaEuryaleMusic
      @AriannaEuryaleMusic 3 года назад +2

      I use Adblock plus and I haven´t seen any ad for years,
      but still, He is teaching for free, you should be thankful

  • @menthusajaya
    @menthusajaya 3 года назад

    Thanks!

  • @FADLINRAMADHAN-p2p
    @FADLINRAMADHAN-p2p 2 месяца назад

    awesome

  • @citywitt3202
    @citywitt3202 3 года назад

    Let’s hunt some AWK

  • @ErnestoPozzoni
    @ErnestoPozzoni 2 года назад

    3:33 I actually came here only to hear about the Ninja Turtles :(

  • @doge1931
    @doge1931 Год назад

    what do u mean what is this awk all about i thought this was a ninja turtles video

  • @smithmilairdese511
    @smithmilairdese511 Месяц назад

    7892 Baumbach Point

  • @immutablecantrip
    @immutablecantrip 3 года назад

    ...it indexes at 1? my 0-based-indexing sensibilities are horrified.

  • @WilhelminaSophia-z4r
    @WilhelminaSophia-z4r Месяц назад

    Floy Stravenue

  • @AriannaEuryaleMusic
    @AriannaEuryaleMusic 3 года назад +1

    Thank You, You explained it much clearer and better than the other $ echo CHannels CHannels CHannels CHannels CHannels.

  • @khomo12
    @khomo12 2 года назад

    Cool!

  • @yongzechen2139
    @yongzechen2139 Год назад

    echo "are you ok!"|awk '{print $3}'

  • @LarryProvencal-b4o
    @LarryProvencal-b4o 2 месяца назад

    Gertrude Manors

  • @samitee8336
    @samitee8336 Год назад +1

    'echo this sentence' 😅

  • @LambArcher
    @LambArcher Месяц назад

    005 Andreane Fords

  • @ClarissaPerkin
    @ClarissaPerkin 2 месяца назад

    6417 Genevieve Trail

  • @ChestertonBetty
    @ChestertonBetty 2 месяца назад

    467 Schmitt Brook

  • @MegEmily
    @MegEmily Месяц назад

    851 Theresia Fields

  • @MatthewRossi-m8o
    @MatthewRossi-m8o 2 месяца назад

    Syble Overpass

  • @FoxBarbara-y7i
    @FoxBarbara-y7i Месяц назад

    Ashton Crossroad

  • @jovencriminal615
    @jovencriminal615 Месяц назад

    Awk tuah

  • @PorterFulton-t9j
    @PorterFulton-t9j 2 месяца назад

    Darby Station

  • @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

  • @CampTernence-x5h
    @CampTernence-x5h 2 месяца назад

    Lilian Views

  • @christinewaller5928
    @christinewaller5928 2 месяца назад

    123 Darius Point

  • @name1355_0ne
    @name1355_0ne 3 года назад +1

    Nice joke about "echoing the sentence" ))

  • @JessieMarcus-b2l
    @JessieMarcus-b2l 2 месяца назад

    Allie Mall

  • @ShannonGunter-j4b
    @ShannonGunter-j4b 2 месяца назад

    Willms Spur

  • @MiddletonMeredith
    @MiddletonMeredith 2 месяца назад

    56547 Nolan Track

  • @BettyTyler-n5m
    @BettyTyler-n5m 2 месяца назад

    Schaden Ville

  • @unbekannter_Nutzer
    @unbekannter_Nutzer 3 года назад

    Too slow, too simple, for my taste.

  • @Euzahad
    @Euzahad 2 года назад +1

    too poor explanaition of this comand

  • @stephenbaum9150
    @stephenbaum9150 11 месяцев назад +25

    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 4 месяца назад +1

      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.

    • @zq703
      @zq703 Месяц назад +1

      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.)

  • @daniellelewinese1302
    @daniellelewinese1302 2 месяца назад

    41948 Jennifer Squares