I need to replace a word between the quotes after equal sign using sed. but I'm unable to do it please suggest? #mfsbsd.rootpwhash="" look like #mfsbsd.rootpwhash="wsnk&*32jk"
cat loader | sed -e 's|["\'']||g' | sed 's/rootpwhash="[^"]*"/rootpwhash="abcd"/'