til

This is the repository with things I learned during my day to day work in software engineering

View on GitHub

Inplace replace windows line endings with sed

Today I found out how I can replace the windows line endings with unix line endings using sed sed -i.bak 's/\r$//' file.txt the -i.bak will enable in place substitudes and write the old file to `` as a backup.