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
/
url_encode_bf
blob
5bfcc8f790bc585fc7ee1d06c5446c42f5113507
1
#!/bin/sh
2
3
true
<<EOF
4
=pod
5
6
=head1 NAME
7
8
url_encode_bf - Make all chars given either in parameters or in stdin to percent-encoded sequence
9
10
=cut
11
12
EOF
13
14
15
test -n
"$*"
&&
echo -n
"$*"
|
od
-t
x1
-A
n |
tr
" "
%
|
tr
-d
"
\n\r
"
||
od
-t
x1
-A
n |
tr
" "
%
|
tr
-d
"
\n\r
"