有3個過程我必須找到運行過程的 「計數」 在當前目錄
命名../sample
[根@ SP3樣品]#PS -eaf | grep perl
root 14104 1 58 08:39? 03:31:34 perl example1.pl
root 17441 1 41 09:09? 02:17:24 perl example2.pl
root 24543 1 0 Jul05? 00:00:00的perl sample.pl
[根@ SP3樣品]#
結果我不得不返回是3
I have currently in sample directory and i have to count the number of process in same directory
請張貼任何溶液。
'ps aux | grep perl | grep -vc grep' – wildplasser 2012-07-06 10:49:28