Answers for "take in substring from string using bash"

2

substring in shell script

STR="birthday-091216-pics"
SUBSTR=$(echo $STR | cut -d'-' -f 2)
echo $SUBSTR
Posted by: Guest on October-29-2020

Code answers related to "take in substring from string using bash"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language