regex - use sed to search and replace patterns via regular expressions -


trying replace within file including password space.

 password=xx%40%25pkz3l2jta http 

tried following sed command, using regular expression http://en.wikipedia.org/wiki/regular_expression

  sed 's/password=(.)+/ /g' $file 

and

  sed 's/password=[^ ]+/ /g' $file 

none of above works. why?

try -r argument:

sed -r 's/password=[^ ]+/ /g' $file 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -