Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux get part of string

INPUT='someletters_12345_moreleters.ext'
SUBSTRING=$(echo $INPUT| cut -d'_' -f 2)
echo $SUBSTRING
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #linux #part #string
ADD COMMENT
Topic
Name
3+7 =