Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

substring in shell script

STR="birthday-091216-pics"
SUBSTR=$(echo $STR | cut -d'-' -f 2)
echo $SUBSTR
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #substring #shell #script
ADD COMMENT
Topic
Name
2+4 =