Re: Grep and Hidden files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 24, 2006 at 03:16:46PM +1100, Matthew Percival wrote:
> G'Day,
> 
> >     "How do you make grep search for a keyword in just the current 
> > directory, including hidden files?"
> 
> $ grep <pattern> * .*
 
You want something like .??* otherwise that'll match ../ as well.

> 	grep will always search just the current directory, unless you use the
> -r/-R option.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux