Random Project

Work Around

Hey, This helped me a lot.

This didn’t worked for me, i have changed the first 2 lines, then it worked like a charm..

ADDRESS=$(echo ${QUERY_STRING} | grep -oE “address=.*” | cut -f 1 -d “&” | cut -f 2 -d “=” | head -n1)
HOST=$(echo ${QUERY_STRING} | grep -oE “(^|[?&])host=.+” | cut -f 2 -d “=” | head -n1)

Thanks,
Sri