Results 1 to 3 of 3
Hi All,
I want to know whether i can use both grep and vi together and open different files having the same expression in them in one cpmmand.
Something like ...
- 11-05-2008 #1Just Joined!
- Join Date
- Jan 2008
- Posts
- 9
To open multilple Files containg a particular expression
Hi All,
I want to know whether i can use both grep and vi together and open different files having the same expression in them in one cpmmand.
Something like this :
vi `grep -lR` Hai` "*.*"
But the above command is not working. Can any one please correct me if
i am doing anything wrong or is there any other way to achieve the same.
Thanks & Regards
Vikram
- 11-05-2008 #2Just Joined!
- Join Date
- Aug 2007
- Posts
- 25
- 11-14-2008 #3Just Joined!
- Join Date
- Nov 2008
- Posts
- 26
<SOAPBOX>
Keep in mind also folks, that Linux is not Winblows. *.* does not necessarily do what you think it will do. On Windows, it will pull out any file (even files that have no extension). On Linux, this means "any file whose name contains a period." On Linux, for example,
> ls -al /etc/hos*.*
will not show you /etc/hosts (unlike Winblows)
What you really want (probably), is to replace "*.*" with *
</SOAPBOX>
D


Reply With Quote
