SankaNaaku Posted October 19, 2012 Report Posted October 19, 2012 prathi directory lo recursive ga "fff" ane file undedo ledo vethiki, unte "ggg" ane pattern ekkada undo kanukkoavala.. find, grep with pipe and telusu exact ga ela rastaru
THE_DB_KNIGHT Posted October 19, 2012 Report Posted October 19, 2012 find . -name fff | grep -i ggg Try chei - not sure
dollar vora Posted October 19, 2012 Report Posted October 19, 2012 ante dantlo file contents ggg pattern lo unnaya ledo kanukovala bava?
THE_DB_KNIGHT Posted October 19, 2012 Report Posted October 19, 2012 Current directory lo lekapothe . Deggara directory ivvu
Silver_mani Posted October 19, 2012 Report Posted October 19, 2012 baa anni directories lo search cheyali kada
dollar vora Posted October 19, 2012 Report Posted October 19, 2012 top level directory lo run chei baa DB KNIGHT ichina command nenu atlanti command e pani chestadi anukuntunde DB KNIGHT ichina find command direcotry aithe find chestadi but dantlo contents ki adi work avtado ledo telvadu try chesi cheppu baa lekapothe inkoti chepthanu
Simple123 Posted October 19, 2012 Report Posted October 19, 2012 "find . -name xyz" will give you the files with xyz and "grep -irn abc" does grep for string abc in all directories recursively .
Simple123 Posted October 19, 2012 Report Posted October 19, 2012 [quote name='manmadhan' timestamp='1350614236' post='1302653990'] top level directory lo run chei baa DB KNIGHT ichina command nenu atlanti command e pani chestadi anukuntunde DB KNIGHT ichina find command direcotry aithe find chestadi but dantlo contents ki adi work avtado ledo telvadu try chesi cheppu baa lekapothe inkoti chepthanu [/quote] adi pani cheyyadu bhayya . find . -name xyz | grep -irn abc will search abc in the findings of xyz and doesn't search in files of xyz
kalyann Posted October 19, 2012 Report Posted October 19, 2012 find -name / xyz -- will search for xyz in all dir
SankaNaaku Posted October 19, 2012 Author Report Posted October 19, 2012 [quote name='THE_DB_KNIGHT' timestamp='1350613859' post='1302653978'] find . -name fff | grep -i ggg Try chei - not sure [/quote] adi files perullo vetukutundo.. not inside those files..
SankaNaaku Posted October 19, 2012 Author Report Posted October 19, 2012 [quote name='Simple123' timestamp='1350614242' post='1302653991'] "find . -name xyz" will give you the files with xyz and "grep -irn abc" does grep for string abc in all directories recursively . [/quote] second di okay but chala files unnayi prathi directory anni vethakarla... xyz ane file untene .. dantlo veithikite chalu
pawanism Posted October 19, 2012 Report Posted October 19, 2012 This will give you will required list . grep ggg $(find /path -name ffff)
SankaNaaku Posted October 19, 2012 Author Report Posted October 19, 2012 [quote name='pawanism' timestamp='1350616412' post='1302654094'] This will give you will required list . grep ggg $(find /path -name ffff) [/quote] ippude type chesina mama.. entha sepu padutundo chudali
pawanism Posted October 19, 2012 Report Posted October 19, 2012 You can also use this . find /path -name fff | xargs grep ggg
Recommended Posts