Bash 05 Using awk to parse streams and files

preview_player
Показать описание
In this video, the Kilt Guy provides some common uses for awk in Ubuntu using the bash shell

Commands used in the shell:
date
awk
getent

0:00 Intro
0:24 Getting started with awk
2:04 Using Output Formatting into the print results
2:48 Using the BEGIN statement to provide a result before the print statement (do this, then that)
3:50 Changing the fields around
4:11 Using awk to search for information in a file
6:09 Using awk to parse blanks automatically
6:41 Using field delimiters in awk
8:29 Using an IF statement to define the information that is being actioned or compared
10:06 Using the $NF shortcut to display the LAST field in the string
11:17 Demonstrating nested IF statements in an awk pipeline
12:11 Using awk for simple searching
13:38 Using awk to do more complex searching (using anchors)
14:25 Printing the line numbers using awk
14:58 Formatting inside the print statement, not using OFS
16:10 Just printing the usernames from passwd (including root)
17:01 Outro
Рекомендации по теме
visit shbcf.ru