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
Post a Comment