Bash Scripting - String Operations
Which of the following is the correct syntax to extract 5 characters starting at position 2 from variable
var in bash?var in bash?${var:offset:length} where offset and length are numbers.${var:2:5} which means start at index 2 and take 5 characters, matching the requirement.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions