in reply to Modifying entries in a file.

You could use

perl -pi -e 's/^(Identity\s*=).*$/$1 ABC/' test.txt

See perldoc perlrun on how the various command-line switches for perl work.


There are ten types of people: those that understand binary and those that don't.