Does CRLF annoy you too? Use this Docker image to convert all files to LF.
- Docker
- Pull the image or build it by executing the following command.
$ docker build . -t annoying-crlf
- Run the container.
$ docker run --rm -v $PWD:/data annoying-crlf "*.txt"
- To change the lineendings, create a volume which points to the /data folder inside the container.
- Pass as argument the filename which file should be converted. You can apply wildcards like:
$ docker run --rm -v $PWD/src:/data danielschischkin/annoying-crlf:latest "*.php" "*.txt"