Skip to content

Commit

Permalink
doc: remove repeating characters using Perl
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelLarkin committed Jul 3, 2024
1 parent 6b66250 commit 00a38c8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/perl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Perl

## Remove Repeating Chinese Characters
```sh
perl -ple 'BEGIN{use utf8;use open qw(:std :utf8);} s/(\p{Han})\1{1,}/\1/gm' < translation.zho.word
```
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ nav:
- Miller: milller.md
- Miscellaneous: doc.md
- nvim: nvim.md
- Perl: perl.md
- rsync: rsync.md
- SLURM: slurm.md
- tmux: tmux.md

0 comments on commit 00a38c8

Please sign in to comment.