mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-17 16:00:46 +00:00
Update cheatsheets
This commit is contained in:
@@ -14,12 +14,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Detect file(s) encoding specifying a language in the POSIX/C locale format (e.g. zh_CN, en_US):
|
||||
|
||||
`enca -L {{language}} {{path/to/file1 path/to/file2 ...}}`
|
||||
`enca {{[-L|--language]}} {{language}} {{path/to/file1 path/to/file2 ...}}`
|
||||
|
||||
- Convert file(s) to a specific encoding:
|
||||
|
||||
`enca -L {{language}} -x {{to_encoding}} {{path/to/file1 path/to/file2 ...}}`
|
||||
`enca {{[-L|--language]}} {{language}} {{[-x|--convert-to]}} {{to_encoding}} {{path/to/file1 path/to/file2 ...}}`
|
||||
|
||||
- Create a copy of an existing file using a different encoding:
|
||||
|
||||
`enca -L {{language}} -x {{to_encoding}} < {{original_file}} > {{new_file}}`
|
||||
`enca {{[-L|--language]}} {{language}} {{[-x|--convert-to]}} {{to_encoding}} < {{original_file}} > {{new_file}}`
|
||||
|
||||
Reference in New Issue
Block a user