mirror of https://github.com/leahneukirchen/mblaze
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
161 B
Plaintext
9 lines
161 B
Plaintext
7 years ago
|
#!/bin/sh
|
||
|
# mrecode - recode stdin respecting PIPE_CHARSET into UTF-8
|
||
|
|
||
|
if [ -n "$PIPE_CHARSET" ]; then
|
||
|
exec iconv -f "$PIPE_CHARSET" -t UTF-8
|
||
|
else
|
||
|
exec cat
|
||
|
fi
|