Jump to content

Linux Expert Lara Randi.. Nako Help Chesi Pondri


Recommended Posts

Posted

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

  • Replies 124
  • Created
  • Last Reply

Top Posters In This Topic

  • SankaNaaku

    28

  • _poori

    21

  • pavan_613

    19

  • manchi_babu

    13

Top Posters In This Topic

Posted

find . -name fff | grep -i ggg

Try chei - not sure

Posted

ante dantlo file contents ggg pattern lo unnaya ledo kanukovala bava?

Posted

Current directory lo lekapothe . Deggara directory ivvu

Posted

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

Posted

"find . -name xyz" will give you the files with xyz

and "grep -irn abc" does grep for string abc in all directories recursively .

Posted

[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

Posted

find -name / xyz -- will search for xyz in all dir

Posted

[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..

Posted

[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

Posted

This will give you will required list .

grep ggg $(find /path -name ffff)

Posted

[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

×
×
  • Create New...