AWK Programming Part 2

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.พ. 2025
  • AWK programming Part 2
    Prof. Gandham PhaniKumar
    Metallurgical and Materials Engineering,
    IIT Madras

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

  • @sayanghosh6996
    @sayanghosh6996 11 หลายเดือนก่อน +3

    - 00:15 Arrays in awk (Associative, sparse, index may not be integers)
    - 00:30 `arr[index]=value`
    - 00:45 `for (var in arr)`
    - 01:00 `delete arr[index]`
    - 01:05 Types of loops in awk (for, while, do-while, C-style for, if, if-else, if-else-if, switch)
    - 02:00 Payroll Management System using awk script on text file
    - 06:15 User defined functions in awk (`awk -f lib.awk -f script.awk`)
    - 11:00 Print Formatting using `printf` in awk
    - 12:00 Use awk as a programming language to generate random numbers
    - 15:30 How to comment in awk script using `#`
    - 17:00 Processing file with million lines using awk
    - 19:30 Spreadsheet applications cannot process such big files, but awk can
    - 21:45 Process web server log book using awk
    - 24:45 Get the first field of each line in a file using awk
    - 25:50 `substr` function in awk
    - 28:30 `date --date="5 days ago" +%d/%m/%Y` to get date 5 days ago
    - 29:30 `sprintf` function in awk to format strings and store in a variable
    - 29:40 `cmd | getline var` to read output of a command into a variable
    - 30:00 `match` function in awk to match a regex in a string
    - 34:00 How to sort a file using `sort` using `-n` for numeric sort and `-r` for reverse sort
    - 34:30 `dig` to get IP address of a domain
    - 35:00 `dig -x` to get domain name from IP address
    - 35:30 `dig +noall +answer -x` to get one line answer

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

    24:05 awk command in terminal (not from a .awk file)
    28:31 date --date="n days ago" +date_format
    34:00 cat file | sort -n
    34:20 dig -x IP_address (DNS lookup utility)
    35:25 dig +noall +answer -x IP_address

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

    A real world project done in later half of the video. 😵

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

      It is more like a small administrative script done for getting some quick statistics. A real project would have a stronger data inflow and outflow pipeline, but yes, combining small command line tools like these can lead to a very powerful application written in very less lines and very less time.

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

    🇮🇳 Week-7/Lec-2 || Last lec.🇮🇳
    Raadhe Raadhe
    Jai Shri Ram
    Har Har Mahadev