i have a simple log text file (access_log ) that can have a url inside :
"POST / HTTP/1.1" 302 3064 "http://localhost/Succeeded.html?user=yyy
" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
i want to get the user which is aftet "= " i mean yyy
the yyy is dynamic and other is state.
i have tried to use this:
username=`cat /access_log | grep -P '(?<=Succeeded.html?user=)
thanks a lot