By default it is not supposed to affect binary files.
I tested it in a folder with images and although most images were not affected, a few were. If dos2unix
cannot tell a binary file from a text file, must I resort to specifically including and/or excluding certain file extensions for it to work properly?
NOTE: when I run file image.jpg
on any of the jpgs, whether it got modified or not, the result is:
JPEG image data, JFIF standard 1.01
php
,js
,phtml
, andtxt
files will not corrupt those files. – Cleodelldos2unix
. – Moribundman dos2unix
on centos6.6:Binary files are automatically skipped, unless conversion is forced.
– Medwin