16

Linux 文本处理利器--Awk常用命令-越努力,越幸运!

 4 years ago
source link: https://blog.51cto.com/13760351/2474737
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
简介:在Linux/UNIX系统中,awk是一个功能强大的编辑工具,逐行读取输入文本,并根据指定的匹配模式进行查找,对符合条件的内容进行格式化输出或者过滤处理,可以在无交互的情况下实现相当复杂的文本操作,被广泛应用于Shell脚本,完成各种自动化配置任务。工作原理逐行读取文本,默认以空格为分隔符进行分隔,将分隔所得的各个字段保存到内建变量中,并按模式或者条件执行编辑命令常见用法:单引号加上大括号“

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK