|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Unix : Need to list filenames containing 'a' OR 'b' AND content contains 'x' OR 'y'
Need to list filenames containing 'a' OR 'b' AND content contains 'x' OR 'y'
I can only do part of the problem that is listing filenames containing 'a' OR 'b' ls | grep '[a|b]' How do i search the contents of file? Pls help. |
|
#2
|
||||
|
||||
|
sounds like a sed/awk or perl task
|
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > Unix : Need to list filenames containing 'a' OR 'b' AND content contains 'x' OR 'y' |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|