[NTLUG:Discuss] grep in subdirs
    Fred James 
    fredjame at concentric.net
       
    Sat Jun  7 14:53:31 CDT 2003
    
    
  
Pervaz Allaudin wrote:
> OK a basic question.
>
> I am trying to do a grep in xml files and I want it to do all the 
> subdirs.
>
> I tried :
>
> grep -r -i abc *.xml
> grep -d recurse abc *.xml
> and various other combinations.
>
> but it does not work and I cannot figure out why.
>
> Any ideas.
>
> Pervaz
>
>
>
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
>
>
find . -type f  | xargs file  | grep -i text | cut -f1 -d: | grep xml | 
xargs grep -i abc
Maybe
-- 
never underestimate the value of backups
    
    
More information about the Discuss
mailing list