I want to get the \"GET\" queries from my server logs.
For example, this is the server log
1.0.0.127.in-addr.arpa - - [10/Jun/2012
use a pipe if you use grep:
grep -o /he.* log.txt | grep -o [^/].* grep -o /ss log.txt | grep -o [^/].*
[^/] means extract the letters after ^ symbol from the grep output