Multiples replace

Jan 26 at 6:34 PM
Hi, someone know's how find a replace several lines?
I Have a txt file with different values,

123456
888888
585858

The first line I need to replace with 1234
The second line I need to replace with 7777
The third line I need to replace with 6868

Thanks