[PLUG] use of grep

Dhiraj Khot dhiraj at augusttechnologies.com
Thu May 24 08:20:29 PDT 2007


Hello, 
I have a question. 
If I use 
$ file .*  
The output of the command is listing of all the files / directories that
begin with . 
I want to have same output using grep command. So I tried
$ ls -a | grep . 
This lists all the files and not the files which have . in its name. 

Can someone tell me why? What is that I am doing it wrong ? 

Regards, 
Dhiraj 





More information about the plug-mail mailing list