Re: [PLUG] use of grep

2007-05-25 Thread Ritesh Khadgaray
On Thu, 2007-05-24 at 23:02 +0530, BVK wrote: > On 5/24/07, Dhiraj Khot <[EMAIL PROTECTED]> wrote: > > > 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 |

Re: [PLUG] use of grep

2007-05-24 Thread BVK
On 5/24/07, Dhiraj Khot <[EMAIL PROTECTED]> wrote: 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 na

Re: [PLUG] use of grep

2007-05-24 Thread yogesh
On 5/24/07, Dhiraj Khot <[EMAIL PROTECTED]> wrote: 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 fil

[PLUG] use of grep

2007-05-24 Thread Dhiraj Khot
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 tel