All apps/dos2unix

dos2unix

dos2unix

Convert text files between DOS and Unix line endings.

Runs as dos2unix|macOS, Linux, Windows

Command form

ai-draft · 2 tasks · 7 fields

Convert DOS (CRLF) line endings to Unix in place, or write to a new file. Code-page switches are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui dos2unix
Convert line endingsExample values, fixed in this page — nothing here reaches a terminal
Basic
Files*
file
Keep the original timestamp
-k
Verbose
-v
TasksEach one presets the form for one job
Convert files in place
fileskeepdateverbose
Convert and remove BOM
filesremove_bomkeepdate
ParametersOnly these flags are editable in the form
Files
path · positional 0 · repeatable
Keep the original timestamp
boolean
-k--keepdate
Quiet
boolean
-q--quiet
Convert binary files too
boolean
-f--force
Keep byte order mark
boolean
-b--keep-bom
Remove byte order mark
boolean
-r--remove-bom
Verbose
boolean
-v--verbose
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed dos2unix against its version. A form that does not match your version is not offered.