Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

shell replace plus in string

#replace "XX" with "AF"
$ echo '01XX1234' | sed 's/XX/AF/'
01AF1234

#for url "2B" = "+" 
$ echo '01+1234' | sed 's/+/%2B/'
01%2B1234
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #shell #replace #string
ADD COMMENT
Topic
Name
9+6 =