How to replace some string in file

[email protected] ("Santosh Reddy")
Newsgroups perl.beginners
Message-ID <[email protected]>
Hi All,

I have a file called a.txt which has the following lines

abcd
efgh
ijkl
abcd123
12abcd

I want to replace abcd with xyz.

how do i do this. thanks a lot in advance

-- 
Thanks & Regards,
Santosh Reddy.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.