projects
/
eprints3-migration.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6a0037
)
eprints-dev: /home/dpavlin/unaccent-file.pl [commit]
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 19 Oct 2010 17:07:30 +0000
(19:07 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 19 Oct 2010 17:07:30 +0000
(19:07 +0200)
unaccent-file.pl
[new file with mode: 0755]
patch
|
blob
diff --git a/unaccent-file.pl
b/unaccent-file.pl
new file mode 100755
(executable)
index 0000000..
5409159
--- /dev/null
+++ b/
unaccent-file.pl
@@ -0,0
+1,13
@@
+#!/usr/bin/perl
+
+use warnings;
+use strict;
+
+use Text::Unaccent;
+
+my $what = shift @ARGV || '.+';
+
+while(<>) {
+ s{($what)}{unac_string('utf8',$1)}ges;
+ print;
+}