Answers for "how to print substring in bash script"

1

how to print substring in bash script

INPUT='someletters_12345_moreleters.ext'
SUBSTRING=$(echo $INPUT| cut -d'_' -f 2)
echo $SUBSTRING
Posted by: Guest on September-05-2020

Code answers related to "how to print substring in bash script"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language