摘要: 三剑客之grep 1. grep [OPTIONS] PATTERN [FILE...] 2.相关参数 -n Prefix each line of output with the 1-based line number within its input file. -v Invert the se 阅读全文
posted @ 2020-09-30 21:46 Gsh-123 阅读(115) 评论(0) 推荐(0)
摘要: 三剑客之awk 1.gawk [ POSIX or GNU style options ] -f program-file [ -- ] file ... 2.相关参数 -F 设置分隔符 -v 定义或者修改awk的一个内部变量 3.相关变量 NF 记录当前列的个数 NR 已读出的记录数,行号 $0 阅读全文
posted @ 2020-09-30 20:51 Gsh-123 阅读(102) 评论(0) 推荐(0)