>Здравствуйте Уважаемые.
>Подскажите глупому как пользоваться recode например для перекодировки файла из CP1251 в
>KOI8-R.
>через man recode - не доходит:)
>Заранее спасибо.
wget http://unix1.jinr.ru/~lavr/local/recode.c
# gcc -s -o recode recode.c
# recode Usage: recode -{ai|ak|aw|ia|ik|iw|ka|ki|kw|wa|wi|wk|at|it|kt|wt|kr|ke|hex|html} [input_file [output_file]]
Parameters are:
-ai - from Alternative to ISO,
-ak - from Alternative to Koi8,
-aw - from Alternative to Windows,
-ia - from ISO to Alternative,
-ik - from ISO to Koi8,
-iw - from ISO to Windows,
-ka - from Koi8 to Alternative,
-ki - from Koi8 to ISO,
-kw - from Koi8 to Windows,
-wa - from Windows to Alternative,
-wi - from Windows to ISO;
-wk - from Windows to Koi8;
-at - from Alternative to Transliterate,
-it - from ISO to Transliterate,
-kt - from Koi8 to Transliterate,
-wt - from Windows to Transliterate,
-kr - from Keyboard: Latin to Cyrillic, from "QwErtY" -> "ЙцУкеН"
-ke - from Keyboard: Cyrillic to Latin, from "ФыВапР" -> "AsDfgH"
-hex - from HEX-style ("=EF=F0") to Normal;
-html - from HTML-style ("&...;") to Normal;
input_file - name of input file, may be "-" as standard input;
output_file - name of output file, may be "-" as standard output.
# recode -wk file.in file.out
# cat filename | recode -wk - -
# echo "Мама мыла раму" | recode -kw - -
ну и тд и тп