Dos2unix Alternative Jul 2, 2021 • Ulysses If you create scripts in Windows, editors sometimes add a carriage return in addition to the line feed. You can use dos2unix to remove the extra characters. Or you can use sed. <pre lang="bash"> sed -i -e 's/\r$//' script.sh