- 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
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.
- 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
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
A real world project done in later half of the video. 😵
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.
🇮🇳 Week-7/Lec-2 || Last lec.🇮🇳
Raadhe Raadhe
Jai Shri Ram
Har Har Mahadev