Bem, se é o fim da linha ...
$ sed 's/\.png$/.mat/' file
file1.png otherfile1.mat
file2.png otherfile2.mat
file3.png otherfile3.mat
-
s/old/new/pesquisar e substituir -
\.ponto literal (sem o escape corresponde a qualquer caractere) -
$fim da linha
Ou para especificar explicitamente a segunda coluna, você pode usar um awk way ...
$ awk 'gsub(".png", ".mat", )' file
file1.png otherfile1.mat
file2.png otherfile2.mat
file3.png otherfile3.mat
-
gsub(old, new, where)pesquisar e substituir -
segunda coluna