diff options
Diffstat (limited to 'man/uk/man1/dos2unix.pod')
-rw-r--r-- | man/uk/man1/dos2unix.pod | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/man/uk/man1/dos2unix.pod b/man/uk/man1/dos2unix.pod index 864e0eb..a1225b8 100644 --- a/man/uk/man1/dos2unix.pod +++ b/man/uk/man1/dos2unix.pod @@ -80,6 +80,17 @@ SunOS/Solaris передбачено підтримку лише парного dos2unix -n -- -foo out.txt +=item B<--allow-chown> + +Allow file ownership change in old file mode. + +When this option is used, the conversion will not be aborted when the user +and/or group ownership of the original file can't be preserved in old file +mode. Conversion will continue and the converted file will get the same new +ownership as if it was converted in new file mode. See also options C<-o> +and C<-n>. This option is only available if dos2unix has support for +preserving the user and group ownership of files. + =item B<-ascii> Виконати лише перетворення символів розриву рядків. Типовий режим @@ -376,6 +387,15 @@ UTF-8, UTF-16 або GB18030. Див. також розділ щодо UNICODE. початкового файла мінус umask(1) для користувача, яким було розпочато перетворення. +=item B<--no-allow-chown> + +Don't allow file ownership change in old file mode (default). + +Abort conversion when the user and/or group ownership of the original file +can't be preserved in old file mode. See also options C<-o> and C<-n>. This +option is only available if dos2unix has support for preserving the user and +group ownership of files. + =item B<-o, --oldfile ФАЙЛ ...> Застарілий режим обробки. Виконати перетворення файла ФАЙЛ і перезаписати @@ -393,6 +413,27 @@ UTF-8, UTF-16 або GB18030. Див. також розділ щодо UNICODE. які не повинні мати такі права доступу. Можливість збереження прав власності та прав доступу до файла передбачено лише у Unix. +To check if dos2unix has support for preserving the user and group ownership +of files type C<dos2unix -V>. + +Conversion is always done via a temporary file. When an error occurs halfway +the conversion, the temporary file is deleted and the original file stays +intact. When the conversion is successful, the original file is replaced +with the temporary file. You may have write permission on the original file, +but no permission to put the same user and/or group ownership properties on +the temporary file as the original file has. This means you are not able to +preserve the user and/or group ownership of the original file. In this case +you can use option C<--allow-chown> to continue with the conversion: + + dos2unix --allow-chown foo.txt + +Another option is to use new file mode: + + dos2unix -n foo.txt foo.txt + +The advantage of the C<--allow-chown> option is that you can use wildcards, +and the ownership properties will be preserved when possible. + =item B<-q, --quiet> Режим без виведення повідомлень. Програма не виводитиме жодних попереджень |