Bash Scripting - String Operations
Consider the script snippet:
var="abc123abc456"
echo ${var##abc*}
It outputs an empty line. Why?var="abc123abc456"
echo ${var##abc*}
It outputs an empty line. Why?abc*abc* matches 'abc' followed by zero or more any characters.abc* matches the longest prefix, so nothing remains -> Option C15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions