Emacs для начинающих



Errors-e - часть 4


 Example:

rusconv -alt +koi +win -kext k.txt -ext w.txt textfile.txt

** rusconv -- convertor of Russian codepages, v.3.11.

** (c)w_re -- Oleg A. Paraschenko http://beta.math.spbu.ru/~prof/w_re/

error: flags 'ext' and 'kext' can't be used together.

try 'rusconv -h' or read the manual for help.

error: only one target encoding can be used with flag 'ext'.

 Consider next example. Here file data.txt

is converted from alternative encoding to KOI and windows encodings. Results should be placed in different files. But in this example names for both files are the same - 'data.any'.

 Example:

rusconv -alt +koi +win -ext any data.txt

** rusconv -- convertor of Russian codepages, v.3.11.

** (c)w_re -- Oleg A. Paraschenko http://beta.math.spbu.ru/~prof/w_re/

error: only one target encoding can be used with flag 'ext'.

try 'rusconv -h' or read the manual for help.

error: only one target encoding can be used with file overwriting.

 Results of converting should be placed in different files. But in mode of overwriting files it is impossible.

 Example:

rusconv -alt +koi +win -o data.txt

** rusconv -- convertor of Russian codepages, v.3.11.

** (c)w_re -- Oleg A. Paraschenko http://beta.math.spbu.ru/~prof/w_re/

error: only one target encoding can be used with file overwriting.

try 'rusconv -h' or read the manual for help.

warning: 'argument' is a directory, skipping.

 List of file contains directory. Rusconv skips this argument. This warning is very valuable in UNIX-like systems where work with metachars is a duty of operating system which use directory names and file names equally. So rusconv can get directory in argument list.

 In next example rusconv gets as a file list 'dir1 dir2 .'. Last directory in list is a output directory. Directories 'dir1' and 'dir2' are skipped. So there is no files to convert.

 Example:

ls -l

drwxrwxr-x   2   w_re   w_re   1024   Oct 15 22:55 dir1




Содержание  Назад  Вперед