DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
how to print substring in bash script
INPUT='someletters_12345_moreleters.ext' SUBSTRING=$(echo $INPUT| cut -d'_' -f 2) echo $SUBSTRING
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#print
#substring
#bash
#script
ADD COMMENT
Topic
COMMENT
Name
7+7 =
Submit