I have a config.xml file which shows:
How can I replace myUserId and myPass by using sed?
sed "s/myUserId/$1/;s/myPass/$2/" originalfile
./changeUser.sh ID PASS
Sign up for our newsletter and get our top new questions delivered to your inbox (see an example).
echo "cat //body/username" | xmllint --shell config.xml | sed '/^\/ >/d' | sed 's/<[^>]*.//g'
Can anyone explain this complex regex to me (^_^")
sed 's/old/new/g' test.txt > test1.txt
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
2 years ago