Je me permets de rebondir par une question très proche : Comment remplacer cette chaîne dans un fichier : </table>' par </table> (retirer juste l'apostrophe après </table>) J'ai bien tenté ça, mais ça marche pas : sed -i "s#</table>'#</table>#g" fichier Je précise que </table>' se trouve tout à la fin du fichier. André