Reply to comment

Hello, Il est possible de

Hello,

Il est possible de demander a sed de faire un backup avant de procéder aux changements, pour cela il faut utiliser l'option -i. Cette option existe au moins sur GNU sed et le sed FreeBSD.
La commande devient alors :

  1. sed -i.bak -e 's/_^H//g' -e 's/^H.//g' infile.txt

Reply

The content of this field is kept private and will not be shown publicly.