make getpeername() return the original socket address which before it was intercepted
[hband-tools.git] / user-tools / vidir-sanitize
blobcf7e3c8b4b133f267479e1e76833b714f105f1e9
1 #!/bin/bash
3 true <<EOF
4 =pod
6 =head1 NAME
8 vidir-sanitize - Helper script to change tricky filenames in a directory
10 =head1 INVOCATION
12 Not need to invoke vidir-sanitize directly. vidir(1) calls it internally.
14 =head1 USAGE
16 VISUAL=vidir-sanitize vidir
18 =head1 SEE ALSO
20 vidir(1) from moreutils
22 =cut
24 EOF
27 set -e
28 set -o pipefail
29 set -u
31 cat "$1" |\
32 noacute |\
33 sed -e 's/ /_/g' |\
34 sponge "$1"