Show file info before Conversion
Dos2Unix / Unix2Dos - Text file format converters
Brought to you by:
waterlan
1 . Before Converting , Show the current file format Like (unix, Mac, Windows) with encoding
2. if the file is already in unix format and trying to convert again in Unix, Show meassage like file is already in unix. But the tool is keep converting again. Eg convering 300MB Size of UNIX file into again Unix - taking approx 2 mins which is not fine.
Anonymous
Hi,
The option -i[FLAGS], --info[=FLAGS] FILE ... may help you.
See https://waterlan.home.xs4all.nl/dos2unix/dos2unix.htm#OPTIONS
Example:
Convert only files that have DOS line breaks and leave the other files untouched: