wae*_*ael 11 linux shell scripting awk sed
我想使用"awk"或"sed"打印comm=从文件开头的所有行filex,注意每行包含"comm = somthing"
for example : comm=rm , comm=ll, comm=ls ....
Run Code Online (Sandbox Code Playgroud)
我怎样才能实现这一目标?
jay*_*ngh 25
对于以.开头的行 comm=
sed -n '/^comm=/p' filex
awk '/^comm=/' filex
Run Code Online (Sandbox Code Playgroud)
如果在线comm=的任何地方那么
sed -n '/comm=/p' filex
awk '/comm=/' filex
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
23599 次 |
| 最近记录: |