how can i get the string between two specific characters, only in bash [with out using grep or sed]
e.g
input=hostname~web:sit
I want to extract web from the above input
${hostname#*~} gives me output as web:sit, but i need only web in the output
From the other post i can see
% strips from end of $var, up to pattern. But not sure how to apply it.
Any help please
 
     
     
    