Text processing using awk command in linux | awk patterns & actions | BEGIN,END,NR,FS,OFS,RS,ORS ...

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 พ.ย. 2024

ความคิดเห็น • 49

  • @rajasekharb6395
    @rajasekharb6395 ปีที่แล้ว +2

    Excellent..

  • @maxpolaris99
    @maxpolaris99 2 ปีที่แล้ว +4

    Took about 3 hours to follow along , stop do experiment , continue stop, document, continue , stop experiment ,continue. Very worthwhile 3 hours! A very solid foundation to expand upon indeed! Thank You!

  • @wowgingermobile2123
    @wowgingermobile2123 ปีที่แล้ว +2

    Your guide for awk is super practical! Thank yo so much!

  • @alvyibnferoz
    @alvyibnferoz 3 ปีที่แล้ว +5

    Best one I have found yet for AWK tutorial.

  • @konkani_allwyn
    @konkani_allwyn ปีที่แล้ว +1

    Thanks for the video, good explanation. Appreciated.

  • @kashifrana6798
    @kashifrana6798 11 หลายเดือนก่อน +1

    Amazing work

  • @dodgewagen
    @dodgewagen 8 หลายเดือนก่อน +1

    Thank you! Super Clear!

  • @DavidReidChannel
    @DavidReidChannel 3 ปีที่แล้ว +4

    This was a really good overview of AWK, thanks for sharing.

  • @GopalMaliSnk
    @GopalMaliSnk ปีที่แล้ว +1

    Awesome bro

  • @manvendra_singh
    @manvendra_singh ปีที่แล้ว +1

    Amazing review

    • @manvendra_singh
      @manvendra_singh ปีที่แล้ว

      Just wanted to ask you about comparing two dates in lets day an excel sheet with a date column, lets suppose printing only rows with the dates after 30/04/2020. cat covid19-cable-broadcast-labeled.csv | awk -F',' '{if ($1 = "cnn" && $7 = "covid_direct" && $3 > "30/04/2020") print $1","$2","$3","$6","$7","}' > filtered_paragraphs.csv. I have the above command where I have to write rows/entries with the conditions of the column 7 value = covid_direct, column 1 value = cnn and the dates column (column 3) date should be after 30 April 2020.

  • @johnmandrake8829
    @johnmandrake8829 3 ปีที่แล้ว +1

    thank you, very underrated channel

  • @doctoronline461
    @doctoronline461 2 ปีที่แล้ว +2

    GREAT MAN YOU MADE MY DAY

  • @muhammadrifqi1837
    @muhammadrifqi1837 2 ปีที่แล้ว +1

    Thanks, you give me some Insight about awk

  • @sujaybiswas9166
    @sujaybiswas9166 2 ปีที่แล้ว +1

    Beautifully Explained. Thank you 👍

  • @swamivivekananda-cyclonicm8781
    @swamivivekananda-cyclonicm8781 2 ปีที่แล้ว +1

    Excellent.

  • @shilpashreehn1005
    @shilpashreehn1005 ปีที่แล้ว

    Good work ., found very useful :)

  • @williamm200
    @williamm200 2 ปีที่แล้ว +1

    wow muy bien course amigo gracias "!!!"

  • @michaelkennedy5126
    @michaelkennedy5126 2 ปีที่แล้ว +2

    Very good tutorial, thanks for posting

  • @khajamd2784
    @khajamd2784 2 ปีที่แล้ว +1

    👍

  • @youtubes4403
    @youtubes4403 ปีที่แล้ว +1

    Tq sir🙏🙏🙏

  • @MrRossss1
    @MrRossss1 2 ปีที่แล้ว +1

    Really great video, thank you

  • @kahlschlag17
    @kahlschlag17 2 ปีที่แล้ว +1

    Awsome tutorial. Thanks for making the effort

  • @vijendra1150
    @vijendra1150 3 ปีที่แล้ว +1

    Superb

  • @Janik2370
    @Janik2370 3 ปีที่แล้ว +2

    This is good stuff bro

  • @gunjan6652
    @gunjan6652 2 ปีที่แล้ว +1

    Very helpful for me 😊

  • @martyfriedman86
    @martyfriedman86 2 ปีที่แล้ว +1

    very nice! Thanks!

  • @dabididibide3855
    @dabididibide3855 3 ปีที่แล้ว +1

    Thank you very much bro

  • @shubhamgarg113
    @shubhamgarg113 3 ปีที่แล้ว +1

    Nice video 🎉
    Try to provide thumbnail for every video😀

    • @PedagogyV
      @PedagogyV  3 ปีที่แล้ว

      This is my thumbanil...;)

  • @avinashchoudhary6034
    @avinashchoudhary6034 2 ปีที่แล้ว

    How to extract logs between two timestamps in linux plus other lines also which implies between those patterns?

  • @harshareddy3214
    @harshareddy3214 3 ปีที่แล้ว +1

    Bro after matching manager it should print everything in that line excluding manager till end of line can u send the command

    • @PedagogyV
      @PedagogyV  3 ปีที่แล้ว

      This should do the trick -
      awk '/manager/ {print $0}' filename | tr 'manager' ' ' | tr -s ' '

    • @harshareddy3214
      @harshareddy3214 3 ปีที่แล้ว

      @@PedagogyV not executing bro it's throwing error when not truncating set1, string2 must be non-empty

    • @PedagogyV
      @PedagogyV  3 ปีที่แล้ว

      @@harshareddy3214 not sure ..its working fine in mine ...could you send some more detail in telegram group so that I can look into your issue and provide some solution.

  • @hellosir9179
    @hellosir9179 3 ปีที่แล้ว +1

    Sir can you tell reversing any number

    • @PedagogyV
      @PedagogyV  3 ปีที่แล้ว +1

      use rev command to reverse any string

  • @8polireddy
    @8polireddy 2 ปีที่แล้ว +1

    16

  • @sarangpurnaye
    @sarangpurnaye 2 ปีที่แล้ว

    I want to convert a single column into rows of a binary file, then I want to separate rows with 128bits

  • @rajagopal.m3756
    @rajagopal.m3756 2 ปีที่แล้ว

    Hi bro
    Need to use regex in particular column as tab separator file. In that particular column want to replace only in between character . Trying with this comment awk ‘{gsub(/(?

  • @archanakoti723
    @archanakoti723 2 ปีที่แล้ว +1

    In my laptop ,> < ,
    ,= Operation not working...how to solve it can you please tell me

    • @PedagogyV
      @PedagogyV  2 ปีที่แล้ว

      can you update the awk with the latest version.... sometimes its version problem.

    • @archanakoti723
      @archanakoti723 2 ปีที่แล้ว

      @@PedagogyV yeah sure i can update
      Can you please tell me how to update
      I am new to it so

    • @PedagogyV
      @PedagogyV  2 ปีที่แล้ว

      @@archanakoti723 I guess there is mutiple ways if you search on internet..one of which is
      learnbyexample.github.io/learn_gnuawk/installation-and-documentation.html

  • @maxpolaris99
    @maxpolaris99 2 ปีที่แล้ว +1

    Never Mind I Got It. It's a range!
    Does anyone know why awk '$4==5000 , $5==500 different from awk $4==5000 && $5==500? what is the difference between , and &&
    I'm processing a file generated by ls -lR > ls.txt so I think maybe the data like
    /home/bozo/Documents/:
    total 4410736
    recursing down directories to regular entries like
    -rw-rw-r-- 1 bozo bozo 12675 Apr 8 03:38 SteelyDan.xspf
    .
    .
    .
    might be messing things up.
    I will turn on transcript to pay particularly close attention to what Pedagogy is saying.

  • @scorpione7722
    @scorpione7722 3 ปีที่แล้ว +1

    thank you very much can you pleas help me
    one tow three 6542/ray of 1233.234445
    how can i make it like this :
    1233.234445:6542

    • @PedagogyV
      @PedagogyV  3 ปีที่แล้ว

      is this a single string or the data present in a file ? could you please elaborate it