You could use
perl -pi -e 's/^(Identity\s*=).*$/$1 ABC/' test.txtSee perldoc perlrun on how the various command-line switches for perl work.
In reply to Re: Modifying entries in a file.
by tirwhan
in thread Modifying entries in a file.
by nisha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |