No, I can't do that.
The proxy log is say like this
1219921073.470 4731 10.10.X.XX TCP_MISS/200 252539 GET http://www.smartdraw.com/examples/content/Examples/SmartDraw/Gantt_Charts,_Project_Charts_&_Timelines/Gantt_Charts/sd8_Project_Schedule.exe DIRECT/184.108.40.206 application/octet-stream
Now I am searching based on file extensions like .exe,.flv,etc so if I just grep exe then if any word contains that sequence will also come which won't serve my purpose.
Now I can awk the 7th field that is the URL.
But if the link is like this i.e., after .exe therer is a '?' mark which I dont want to store in database/file and just want upto .exe.