hi please check out this example:
Code:
schneidz@lq temp> cat temp.txt
hello
hello world
world
schneidz@lq temp> egrep "(hello|world)" temp.txt
hello
hello world
world
matches all three lines because they have
hello or world in it.
i would like only the line that has
hello and world in it.
Code:
schneidz@lq temp> grep hello*world temp.txt
produces nothing. i like grep because i can use the '-l' switch which returns the filename only.
this is on aix so some options are missing from the gnu version
thanks,