Hi,
I want to find lines in files that starts with a known string (but not the hole line is known) and than change the whole line (not only the search string) with another line/string.
Example:
file has line:
FROM TEXT: jdoe@org.com
search string is 'FROM TEXT:' because it's always the same
Then the whole line FROM TEXT: jdoe@org.com should be changed to FROM TEXT: helpdesk@org.com
Any ideas how I can do this?
Axel
I want to find lines in files that starts with a known string (but not the hole line is known) and than change the whole line (not only the search string) with another line/string.
Example:
file has line:
FROM TEXT: jdoe@org.com
search string is 'FROM TEXT:' because it's always the same
Then the whole line FROM TEXT: jdoe@org.com should be changed to FROM TEXT: helpdesk@org.com
Any ideas how I can do this?
Axel