关于Linux shell的题 被问倒了
用shell解决下面2题
1、 how to find how long has a process runned for ?
2、how to list all the tcp connections?
Here is a log file.
1、Wang 29 male employee
2、liang 30 female consultant
3、li 32 male employee
4、wu 27 female consultant
5、wu 26 male consultant
please use grep,sed or awk to select all the records contained male and employee