Example:
I have a string abc_def_ghg_hij, i need to get each substring upto character “_” in variables.
Like var1=abc
var2=def
var3=ghg
Can anyone help me with this?
Solved How To Find Character Position In String Using Unix.
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Warning: I haven’t tested it, but you might have a problem if you have 10 or greater variables.
Let me know if you have any questions: