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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -