I have touched a file named "mm$" in current directory ,I want to search it in regular expression. How to get it ?
I have tried this " ls | grep mm\$ " command ,but nothing get from the current directory .
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
how to search a special file in shell?
- dilberts_left_nut
- Administrator
- Posts: 5347
- Joined: 2009-10-05 07:54
- Location: enzed
- Has thanked: 13 times
- Been thanked: 66 times
Re: how to search a special file in shell?
Code: Select all
$ ls | grep 'mm\$'
mm$
AdrianTM wrote:There's no hacker in my grandma...
Re: how to search a special file in shell?
Much more ,what's the differences between double quote and single quote in regular expression ? Are there any books for suggestion?
- dilberts_left_nut
- Administrator
- Posts: 5347
- Joined: 2009-10-05 07:54
- Location: enzed
- Has thanked: 13 times
- Been thanked: 66 times
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times