關於grep指令中*參數的疑問 - Linux
By Anonymous
at 2010-07-07T12:18
at 2010-07-07T12:18
Table of Contents
Hi, 各位好:
例子如下:
$ grep "sensor*" -r *
Acc_dummy.c: DBGPRINT(DBG_LEVEL0, "g-sensor_open error.\n");
Acc_dummy.c: DBGPRINT(DBG_LEVEL3, "g-sensor_ioctl_error.\n");
$ grep "sensor*" -r
上面例子中, 下者未加*, 並沒辦法正確grep到任何資料.
請問一下, * 代表的涵義是什麼呢?
由於*當搜尋參數實在不好查, 還麻煩先進指導一下.
感謝..
--
例子如下:
$ grep "sensor*" -r *
Acc_dummy.c: DBGPRINT(DBG_LEVEL0, "g-sensor_open error.\n");
Acc_dummy.c: DBGPRINT(DBG_LEVEL3, "g-sensor_ioctl_error.\n");
$ grep "sensor*" -r
上面例子中, 下者未加*, 並沒辦法正確grep到任何資料.
請問一下, * 代表的涵義是什麼呢?
由於*當搜尋參數實在不好查, 還麻煩先進指導一下.
感謝..
--
Tags:
Linux
All Comments
By Frederica
at 2010-07-07T23:23
at 2010-07-07T23:23
By Tracy
at 2010-07-08T15:04
at 2010-07-08T15:04
By Isabella
at 2010-07-13T11:51
at 2010-07-13T11:51
By Dinah
at 2010-07-17T21:28
at 2010-07-17T21:28
By Valerie
at 2010-07-21T14:48
at 2010-07-21T14:48
By Steve
at 2010-07-22T00:48
at 2010-07-22T00:48
By Lydia
at 2010-07-26T19:22
at 2010-07-26T19:22
Related Posts
Mandriva2010.1 + Pcmanfm
By Oliver
at 2010-07-07T11:55
at 2010-07-07T11:55
Filezilla安裝在centos
By Kama
at 2010-07-07T11:37
at 2010-07-07T11:37
Re: [情報] 誰在網路上搜尋 Office 2007?
By Aaliyah
at 2010-07-07T10:48
at 2010-07-07T10:48
Re: [情報] 誰在網路上搜尋 Office 2007?
By Todd Johnson
at 2010-07-07T03:27
at 2010-07-07T03:27
Ubuntu使用心得
By Poppy
at 2010-07-07T02:10
at 2010-07-07T02:10