Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yutotnh/unitil
EUC-JP の全角チルダ(8F A2 B7)を波ダッシュ(A1 C1) に変換するツール
https://github.com/yutotnh/unitil
command-line rust tools
Last synced: about 2 months ago
JSON representation
EUC-JP の全角チルダ(8F A2 B7)を波ダッシュ(A1 C1) に変換するツール
- Host: GitHub
- URL: https://github.com/yutotnh/unitil
- Owner: yutotnh
- License: mit
- Created: 2022-07-15T14:40:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-11T07:46:43.000Z (5 months ago)
- Last Synced: 2024-08-11T08:46:44.160Z (5 months ago)
- Topics: command-line, rust, tools
- Language: Rust
- Homepage:
- Size: 106 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# unitil
EUC-JP の全角チルダ(8F A2 B7)を波ダッシュ(A1 C1) に変換するツール
## 変換の例
```console
$ cat a.txt
1~10
$ hexdump -C a.txt
00000000 31 8f a2 b7 31 30 0a |1...10.|
00000007
$ unitil a.txt # 全角チルダを波ダッシュに変更
a.txt:
$ hexdump -C a.txt
00000000 31 a1 c1 31 30 0a |1..10.|
00000006
$ cat a.txt
1〜10
```## 波ダッシュと全角チルダの個数を数える例
```console
$ cat a.txt
1~10
10~20$ hexdump -C a.txt
00000000 31 8f a2 b7 31 30 0a 31 30 8f a2 b7 32 30 0a |1...10.10...20.|
0000000f$ unitil a.txt --count
a.txt:
Wave dash (0xA1C1) : 0
Fullwidth Tilde (0x8FA2B7) : 2
```## Install
### From crates.io
```console
cargo install unitil
```### From source
```console
cargo install --git https://github.com/yutotnh/unitil
```## License
MIT License