awk学习笔记(1)
学习文档: https://www.gnu.org/software/gawk/manual/gawk.html

-f, -E,-i,-l
|
-f source-file --file source-file |
Files named with -f are treated as if they had ‘@namespace "awk"’ at their beginning |
|
-E file --exec file |
类似-f
选项更安全 |
|
-i source-file --include source-file |
从source-file中读取awk源库 这个选项完全等效使用@include指令
Files named with -i are treated as if they had ‘@namespace "awk"’ at their beginning. |
|
-l ext --load ext |
加载动态扩展 ext 扩展存为系统共享库 这选项使用AWKLIBPATH环境变量搜索库 |
@include 关键字可以用于读取外部awk源文件
@load 关键字可以用于读取外部awk扩展
浙公网安备 33010602011771号