Got a hint from Unix cut except last two tokens and able to figure out the answer :
cat datafile | rev | cut -d "https://stackoverflow.com/" -f 2 | rev
Got a hint from Unix cut except last two tokens and able to figure out the answer :
cat datafile | rev | cut -d "https://stackoverflow.com/" -f 2 | rev