瀏覽代碼

dos2unix: add page

fejx 4 年之前
父節點
當前提交
33393f93e4
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      pages/linux/dos2unix.md

+ 12 - 0
pages/linux/dos2unix.md

@@ -0,0 +1,12 @@
+# dos2unix
+
+> Change dos-style line endings to unix-style.
+> Replaces CRLF with CR.
+
+- Change line endings of a file:
+
+`dos2unix {{filename}}`
+
+- Create a copy with unix-style line endings:
+
+`dos2unix -n {{filename}} {{new_filename}}`