請問grep -f 的用法 - Linux

By Caitlin
at 2013-01-03T21:18
at 2013-01-03T21:18
Table of Contents
各位好
我現在想使用grep -f pattern_file target_file
這個指令方式
但是我現在遇到一個問題
我在pattern_file裡面的內容是
string
integer
按照指令的說明
應該會分別用string跟integer去做搜尋吧(?)
但是它卻只會用最後一個關鍵字integer去搜尋
是我的用法有錯還是pattern_file的內容不應該這樣呢?
感謝各位
--
我現在想使用grep -f pattern_file target_file
這個指令方式
但是我現在遇到一個問題
我在pattern_file裡面的內容是
string
integer
按照指令的說明
應該會分別用string跟integer去做搜尋吧(?)
但是它卻只會用最後一個關鍵字integer去搜尋
是我的用法有錯還是pattern_file的內容不應該這樣呢?
感謝各位
--
Tags:
Linux
All Comments

By Kyle
at 2013-01-05T18:31
at 2013-01-05T18:31

By Iris
at 2013-01-07T14:41
at 2013-01-07T14:41
Related Posts
switch to a process by PID

By Michael
at 2013-01-03T13:07
at 2013-01-03T13:07
跑UBUNTU的自組NAS

By Selena
at 2013-01-03T10:55
at 2013-01-03T10:55
Canonical 宣佈 Ubuntu 智慧型手機系統

By Daph Bay
at 2013-01-03T03:11
at 2013-01-03T03:11
Centos預設Python如何救回

By Yedda
at 2013-01-02T15:48
at 2013-01-02T15:48
Debian 套件相依性問題

By Ida
at 2013-01-02T11:44
at 2013-01-02T11:44