DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
3+7 =
Submit