I want to parse a string as below
Code:
-c abcdefg -d hijklmnop -e abracadabra 1234 -f gmail
I need to obtain all the data after '-e' and before '-' with '.' filled up between two words i.e. I would need the output
I don't want to use getopts. I want to obtain the result with sed/awk/grep/tr or anything else. I am new to these things, so partially successful in obtaining the code. But looks lot messy. I am sure there might be a good way to implement.
Can someone help me out.