I have a URL:
www.google.com/word/word1/word_2/word3/word4
I would like to use awk to print only the words that contain the _
special character. Sometimes the folder hierarchy may change:
www.google.com/word/word1/word2/word3/word_4
I was using this, but sometimes the folders are above $6
:
folder=$(echo "$url" | awk -F/ '{print $6}')
I need to print the folder name between the /
characters.