Bash Scripting - String Operations
Given
var="folder/subfolder/file.txt", what is the output of echo ${var#*/}?var="folder/subfolder/file.txt", what is the output of echo ${var#*/}?*/*/ matches the shortest prefix ending with a slash.*/*/ is "folder/". Removing it leaves "subfolder/file.txt".15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions