Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux get part of string

number=$(echo $filename | egrep -o '[[:digit:]]{5}' | head -n1)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #linux #part #string
ADD COMMENT
Topic
Name
7+9 =