AWK is a language processing text files, text analysis is a powerful tool. Linux environment comes.
awk call methods
- Command Line
awk [-F field-separator] 'commands' input-file(s)
- shell script way
#!/bin/sh
- way awk script
`#!/bin/awk awk -f 脚本文件 待处理文件