sed is a stream editor which is pre-installed on linux systems like Ubuntu. It can fix line endings by the following command.
The manual can be found at http://www.gnu.org/software/sed/manual/sed.html.
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