Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

sed only keep string between brackets

echo $str | cut -d "[" -f2 | cut -d "]" -f1
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sed #string #brackets
ADD COMMENT
Topic
Name
5+2 =