perl -i -pe 's!(xdbns=.jabber:iq:auth.>)[^<]*(</password)!$1your_passw +ord$2!g' your_user_file.xml
Update: I messed up the regex
In reply to Re: editing a file with regular expressions
by borisz
in thread editing a file with regular expressions
by gcazian
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |