
運(yùn)行結(jié)果 shell 腳本實(shí)現(xiàn) #!/bin/sh ##############################################...
需求:把查詢中的相關(guān)進(jìn)程名稱改成中文捣域,并不修改源文件內(nèi)容 源文件: [root@localhost scripts]# cat en_sourc...
[root@localhost ~]# netstat -an|awk '/^tcp/ {print $NF}'|sort|uniq -c | ...
root@localhost logs] cat access_log 10.12.29.250 - - [10/Oct/2017:10:41:...
1宴合、通過(guò)man awk可知它的詳情 awk 是一種編程語(yǔ)言焕梅,awk有很多內(nèi)建的功能,比如數(shù)組卦洽、函數(shù)等..... 實(shí)例1通過(guò)awk得到IP [ro...
awk 數(shù)組定義賦值 array[1]=abc; arrray[2]=efg; 在命令行定義打印數(shù)組 [root@localhost ]# aw...
1贞言、sed 在文件指定行插入新的內(nèi)容 用參數(shù):i root@localhost scripts]# sed '1i sedadd' b.log ...
1、sed 命令的后項(xiàng)要引用取IP [root@localhost scripts]# ifconfig enp0s3|grep 'inet '...
ulimit 設(shè)置查看文件描述符命令 ulimit -n查看文件描述符 ulimit -SHn 65535設(shè)置文件描述符 dmesg 內(nèi)核打印的...