awk-07-IO和printf语句




IO语句

image-20210817143120708


1.getline

image-20210817143142952


2.getline var

把a文件的行,追加到b文件的结尾

image-20210817143203556


把 a 文件的行替换 b 文件的指定字段

image-20210817143223348


把 a 文件的行替换 b 文件的对应字段

image-20210817143250121


3.command | getline [var]

image-20210817143311681


4.next

image-20210817143335181


5.system()

image-20210817143357526


6.打印结果写到文件

image-20210817143414856


7.管道连接shell命令

image-20210817143429494




printf

格式化输出,默认打印字符串不换行

image-20210817143504172


image-20210817143527704


image-20210817143544493


3.打印表格

image-20210817143604284


posted @ 2021-08-17 14:39  李成果  阅读(39)  评论(0编辑  收藏  举报