Techniques with AWK

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

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

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

    Thanks ! Your course is very well !

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

    Thank you! This is a very good talk on AWK.

  • @95omega
    @95omega 2 года назад +1

    Thank you for your video Debra! :-)

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

    Awesome video and very smooth explanations. Thank you
    Women’s always do something special they always keep things pretty easy, organized and clean.
    Learning awk and English at the same time I learned that armoire in English is closet. By the what is the name of house fourniture closet, bed chair in English ?

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

    Wonderful examples. Thank you

  • @ooclaar
    @ooclaar 9 месяцев назад +1

    Thanks for video! :)

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

    Thanks for sharing. Good stuff 👍

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

    Excellent stuff thanks Debra - very clear. A noob speaking here. Where did you get the AWK manual from or the the link you mentioned? Thanks again from New Zealand

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

    Love the content

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

    Thanks for this useful video!

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

    Thanks. Very clear demonstration.

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

    Haha Debra cancel that request sharpened up my search…. thanks google…..😂

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

    Very useful, thanks!

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

    Thank you.. May I ask how did you know that `head` command can have a `-Number` to get the head lines ... it is not written in the man pages... only `-n Number` .. ?

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

      Diaa, I cannot tell you exactly how I know this. I have been using `head` since my days at AT&T Bell Labs back in the 1980's. I am sure that someone taught it to me that way and I have been using it ever since!

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

      @@debramccusker i have found it in the info pages though, but nice shortcut :) thank you so much for your efforts

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

      Man Pages in my experience only include common commands. Which make them a pain when trying to reimplement complete replications

    • @baruchben-david4196
      @baruchben-david4196 Год назад +1

      -n, --lines=[-]NUM
      print the first NUM lines instead of the first 10; with the leading '-', print all but the
      last NUM lines of each file

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

      @@baruchben-david4196 Thank You :) good to remember… but, my main question was that in video head was used like “head -5” not “head -n 5” which was a new way for me ( but, surprisingly.. after seeing it in this video, i rarely use -n , unless I am passing lines count in a script to head ,, which rarely happens ) .. Thank You :) again

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

    só no 1.5x para suportar

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

    2x for sure

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

    awokawokawokawokawok

  • @isaacnaughton5206
    @isaacnaughton5206 3 года назад +4

    Hi Debra - I like your tip on NR==1 {next;}. I've found using FNR>1 has a measurable impact on performance (see discussion at this channel: ruclips.net/video/IEDtCZUuSfg/видео.html&ab_channel=Terminalforlife%28LL%29 ) Your method is wonderfully minimalist, needing to be parsed just once. The only amendment I would make is that I normally use FNR instead of NR to cater for instances where I'm processing multiple files in one session. NR==1 will only hit the first line of the first file.
    Not sure why you're using cat to pipe the file to awk though. "awk -f strip-header.awk english-french.txt would do the trick, or make the awk file executable as you say in the video (chmod +x strip-header.awk) and then simply run "strip-header.awk english-french.txt".

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

      You are correct, Isaac, that the "awk -f" syntax handles the job. I suppose that I used the "cat" and the "|" (pipe) since my students had just been reviewing piping. Good comment, though.