1829118 Members
2035 Online
109986 Solutions
New Discussion

xargs

 
SOLVED
Go to solution
Mohammed Quadri
New Member

xargs

I have list of file paths used in files(jhtml)
but since not properly typed are giving errors at the web servers. I tried the following
find . -type f|xargs grep -ni file
but din't work is there any easy way to do it?
Thanks for the help
4 REPLIES 4
Patrick Wallek
Honored Contributor
Solution

Re: xargs

What are you trying to do? I don't understand what you are trying to accomplish with the above command.
Geoff Wild
Honored Contributor

Re: xargs

Try:

find . -type f|xargs grep -ni {};

Or something like that...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Sanjay_6
Honored Contributor

Re: xargs

T G Manikandan
Honored Contributor

Re: xargs

If you are trying to search a specified string in a set of dir,

#find . -exec grep -il "" {} \;