Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tonyseek/unitr
Translate, squeeze, and/or delete UNICODE characters from standard input, writing to standard output.
https://github.com/tonyseek/unitr
Last synced: about 1 month ago
JSON representation
Translate, squeeze, and/or delete UNICODE characters from standard input, writing to standard output.
- Host: GitHub
- URL: https://github.com/tonyseek/unitr
- Owner: tonyseek
- License: mit
- Created: 2024-08-15T07:39:18.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-08-17T08:35:43.000Z (4 months ago)
- Last Synced: 2024-10-14T00:29:50.185Z (2 months ago)
- Language: Rust
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# unitr - translate or delete unicode characters
**unitr** is similar to [**tr**][tr-manpages] but works with all unicode
characters, not just ASCII characters.[tr-manpages]: https://man7.org/linux/man-pages/man1/tr.1.html
## Installation
_TBD_
## Usage
### Synopsis
```
unitr [OPTION]... STRING1 [STRING2]
```### Description
> Translate, squeeze, and/or delete characters from standard input, writing to
> standard output.`STRING1` and `STRING2` specify arrays of characters `ARRAY1` and `ARRAY2` that
control the action.| Option | Description |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| `-c`, `-C`, `--complement` | Use the complement of `ARRAY1` |
| `-d`, `--delete` | Delete characters in `ARRAY1`, do not translate |
| `-s`, `--squeeze-repeats` | Replace each sequence of a repeated character that is listed in the last specified ARRAY, with a single occurrence of that character |
| `-t`, `--truncate-set1` | First truncate `ARRAY1` to length of `ARRAY2` |
| `--version` | Output version information and exit |ARRAYs are specified as strings of characters.
## Compatibility
_TBD_