Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Using sed to find and replace complex string (preferrably with regex)

$ sed -e '1s/name/something/2' 
      -e '3s/name/somethingdifferent/2' 
      -e 's/password/somethingelse/2' sample.xml
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #Using #sed #find #replace #complex #string
ADD COMMENT
Topic
Name
9+1 =