Montag, 21. März 2016

sed: Another way of fixing wrong line endings on linux

sed is a stream editor which is pre-installed on linux systems like Ubuntu. It can fix line endings by the following command.

sed -i -e 's/\r$//' scriptname.sh

The manual can be found at http://www.gnu.org/software/sed/manual/sed.html

Keine Kommentare:

Kommentar veröffentlichen