I want to use "awk" or "sed" to print all the lines that start with comm=
from the file filex
, Note that each line contains "comm=somthing"
for example : comm=rm , comm=ll, comm=ls ....
How can i achieve that ?
For lines that start with comm=
sed -n '/^comm=/p' filex
awk '/^comm=/' filex
If comm=
is anywhere in the line then
sed -n '/comm=/p' filex
awk '/comm=/' filex
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With