i have a file containing a directory listing of files from my web server. i am trying to search for all .html files with with any reference to 2005. (ie: grep htm AND 2005
)
ive tried "grep ... htm|2005" and it seems to be returning htm OR 2005 but not instances where both terms occur in the same line
ie:
--------------------------
----------
----------
----------
----------
----------
------
-rwxrwxrwx|1|u11111|webuse
r||8002|Ap
r|1|2005|u
ser_email.
html
-rwxrwxrwx|1|u11111|webuse
r||6903|De
c|22|2003|
user_enhan
cement.htm
l
-rwxrwxrwx|1|u11111|webuse
r||3990|Oc
t|1|2005|u
ser_questi
ons.html
-rwxrwxrwx|1|u11111|ittecs
vc|11115|M
ay|21|2004
|use_setup
.html
-rw-rw-r--|1|u11111|webuse
r|11106|Ju
n|14|2005|
user_setup
_0614.html
-rwxrwxrwx|1|u11111|webuse
r||886|Jun
|24|2005|u
ser_setup_
thanks.htm
l
-rwxrwxrwx|1|u11111|webuse
r||6389|Ma
y|12|2003|
global_use
r.html
-rwxrwxrwx|1|u11111|webuse
r||1563|De
c|5|2005|q
uestions_u
ser.html
-rwxrwxrwx|1|u11111|webuse
r||1731|De
c|5|2002|q
uestions_i
nfo.html
-rwxrwxrwx|1|u11111|webuse
r||1663|De
c|5|2005|q
uestions_p
rogram.htm
l
-rwxrwxrwx|1|u11111|webuse
r||1859|De
c|5|2002|q
uestions_t
rain.html
-rwxrwxrwx|1|u11111|webuse
r||6342|Se
p|24|2005|
queue_setu
p.html
so in the above example my desired results would be:
--------------------------
----------
----------
----------
----------
----------
-
-rwxrwxrwx|1|u11111|webuse
r||8002|Ap
r|1|2005|u
ser_email.
html
-rwxrwxrwx|1|u11111|webuse
r||3990|Oc
t|1|2005|u
ser_questi
ons.html
-rw-rw-r--|1|u11111|webuse
r|11106|Ju
n|14|2005|
user_setup
_0614.html
-rwxrwxrwx|1|u11111|webuse
r||886|Jun
|24|2005|u
ser_setup_
thanks.htm
l
-rwxrwxrwx|1|u11111|webuse
r||1563|De
c|5|2005|q
uestions_u
ser.html
-rwxrwxrwx|1|u11111|webuse
r||1663|De
c|5|2005|q
uestions_p
rogram.htm
l
-rwxrwxrwx|1|u11111|webuse
r||6342|Se
p|24|2005|
queue_setu
p.html
does this make sense...any suggestions
Thanks
Start Free Trial