repo.or.cz
/
hband-tools.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
make getpeername() return the original socket address which before it was intercepted
[hband-tools.git]
/
user-tools
/
vidir-sanitize
blob
cf7e3c8b4b133f267479e1e76833b714f105f1e9
1
#!/bin/bash
2
3
true
<<EOF
4
=pod
5
6
=head1 NAME
7
8
vidir-sanitize - Helper script to change tricky filenames in a directory
9
10
=head1 INVOCATION
11
12
Not need to invoke vidir-sanitize directly. vidir(1) calls it internally.
13
14
=head1 USAGE
15
16
VISUAL=vidir-sanitize vidir
17
18
=head1 SEE ALSO
19
20
vidir(1) from moreutils
21
22
=cut
23
24
EOF
25
26
27
set -e
28
set -o
pipefail
29
set -u
30
31
cat
"
$1
"
|\
32
noacute |\
33
sed
-e
's/ /_/g'
|\
34
sponge
"
$1
"