zgrep的參數問題 - Linux

By David
at 2008-08-24T18:00
at 2008-08-24T18:00
Table of Contents
我之前曾下如此指令:
zgrep "http" *.gz -m 5
不過發現他會對每個副檔名為gz的檔案列出前五個找到的,
假設一共有3個檔案找到,
就會列出15筆資料,
不過我想要的是不管有多少檔案,
都只列出5筆資料,
這樣的話我應該如何下參數,
或者是寫shell script來完成此功能呢?
謝謝告知!
--
zgrep "http" *.gz -m 5
不過發現他會對每個副檔名為gz的檔案列出前五個找到的,
假設一共有3個檔案找到,
就會列出15筆資料,
不過我想要的是不管有多少檔案,
都只列出5筆資料,
這樣的話我應該如何下參數,
或者是寫shell script來完成此功能呢?
謝謝告知!
--
Tags:
Linux
All Comments
Related Posts
NVIDIA顯示卡問題(已解決)

By Gilbert
at 2008-08-24T14:42
at 2008-08-24T14:42
如何在ubuntu 開機時就啟動Thunderbird

By Mary
at 2008-08-24T13:14
at 2008-08-24T13:14
Error:can't open display:

By Eartha
at 2008-08-24T00:36
at 2008-08-24T00:36
virtualbox bridge模式

By Emily
at 2008-08-24T00:33
at 2008-08-24T00:33
怎樣把一個資料夾底下的影片檔全都壓成 …

By Quintina
at 2008-08-24T00:20
at 2008-08-24T00:20