首页 > 其他分享 >awk --help

awk --help

时间:2023-01-12 11:00:43浏览次数:41  
标签:help -- lint awk file options


最近在使用linux的awk命令,感叹其强大之处,在文本操作上的便利支持,让在对数百万流水明细操作如鱼得水,

先贴出来awk的man,接下来再细致记录常用命令。

awk --help > awk.txt


===================================================awk.txt=======================================================

Usage: awk [POSIX or GNU style options] -f progfile [--] file ...
Usage: awk [POSIX or GNU style options] [--] 'program' file ...
POSIX options: GNU long options:
-f progfile --file=progfile
-F fs --field-separator=fs
-v var=val --assign=var=val
-m[fr] val
-O --optimize
-W compat --compat
-W copyleft --copyleft
-W copyright --copyright
-W dump-variables[=file] --dump-variables[=file]
-W exec=file --exec=file
-W gen-po --gen-po
-W help --help
-W lint[=fatal] --lint[=fatal]
-W lint-old --lint-old
-W non-decimal-data --non-decimal-data
-W profile[=file] --profile[=file]
-W posix --posix
-W re-interval --re-interval
-W source=program-text --source=program-text
-W traditional --traditional
-W usage --usage
-W use-lc-numeric --use-lc-numeric
-W version --version


To report bugs, see node `Bugs' in `gawk.info', which is
section `Reporting Problems and Bugs' in the printed version.


gawk is a pattern scanning and processing language.
By default it reads standard input and writes standard output.


Examples:
gawk '{ sum += $1 }; END { print sum }' file
gawk -F: '{ print $1 }' /etc/passwd

标签:help,--,lint,awk,file,options
From: https://blog.51cto.com/u_15939105/6003867

相关文章

  • php自动签发,生成双向验证证书
    效果:        代码:<?phpheader("Content-type:text/html;charset=utf-8");error_reporting(E_ALL);ini_set('display_errors',1);ini_set('memo......
  • 二次供水PLC系统如何连接触摸屏进行监控并实现故障报警
    二次供水系统中,通常采用PLC作为控制中心,保证供水工作的稳定。PLC与触摸屏的配套使用为PLC远程监控提供更便利的手段,通过工艺组态、数据显示、参数设置等,可以随时观察到PLC的......
  • el-button在chrome低版本(<88)中显示异常的问题
    1、问题内容:el-button按钮显示灰色背景色和边框。【浏览器版本:chrome75】 2、问题原因:el-button使用的:not(xxx,xxx,xxx),以逗号分隔的选择器列表作为参数是实验性的,尚......
  • graylog docker-compose 安装yaml
    graylog是一款日志工具docker-compose部署version:'3'services:#MongoDB:https://hub.docker.com/_/mongo/mongo:image:mongo:5.0.13networks:......
  • 数位 DP
    2023.1.9省选模拟赛IA【题意】给定\(x,y\),求\[\sum\limits_{i\in[0,2^k-x)}\sum\limits_{j\in[y,2^k)}[i\&j=0]\times[(i+x)\&(j-y)=0]\]\(......
  • 【2023-01-06】连岳摘抄
    23:59如果贫穷赶走了你的金色鞋子,切莫让它驱走你的笑声,那是我生命的面包。如果你付不起房租,就以骄傲的步伐去工作,且记住,亲爱的,我时时看着你,我们在一起是世上所能积累的最......
  • [转]Python PDF文件转png图像文件
    13个有趣的Python高级脚本:PythonPDF文件转png图像文件# PDF to Imagesimport fitzpdf = 'sample_pdf.pdf'doc = fitz.open(pdf)for page in doc: ......
  • getopts解析shell脚本命令行参数
    getopts命令格式getoptsoptstringname[arg]optstring为命令行所有选项组成的字符串,每个字母代表一个选项。如果字母后有冒号:,表明该选项需要选择参数。比如说,执行get......
  • 前端代码规范
    关于注释问题注释规遵循jsDoc类注释(多行注释)/***工具类*@author丁少华*@date2020-01-0108:00:00*/方法注释(多行注释)/***用于xxx*@param{stri......
  • YACS 2022年12月月赛 乙组 T2 八进制小数 题解
    纪念一下,两件事。$1.$打$YACS$一年了,时间过得好快啊。$2.$第一次$AK$乙组。高精板子。$8$进制转十进制,很简单。小数部分第一位的数字乘上$8^{-1}$,第二位就乘上......