mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-12 03:58:54 +00:00
Update cheatsheets
This commit is contained in:
@@ -7,12 +7,21 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Change DOS-style line endings to Unix-style.
|
||||
> Replaces CRLF with LF.
|
||||
> See also `unix2dos`, `unix2mac`, and `mac2unix`.
|
||||
> More information: <https://manned.org/dos2unix>.
|
||||
|
||||
- Change the line endings of a file:
|
||||
|
||||
`dos2unix {{filename}}`
|
||||
`dos2unix {{path/to/file}}`
|
||||
|
||||
- Create a copy with Unix-style line endings:
|
||||
|
||||
`dos2unix -n {{filename}} {{new_filename}}`
|
||||
`dos2unix -n {{path/to/file}} {{path/to/new_file}}`
|
||||
|
||||
- Display file information:
|
||||
|
||||
`dos2unix -i {{path/to/file}}`
|
||||
|
||||
- Keep/add/remove Byte Order Mark:
|
||||
|
||||
`dos2unix --{{keep-bom|add-bom|remove-bom}} {{path/to/file}}`
|
||||
|
||||
Reference in New Issue
Block a user