diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-09-13 16:01:27 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-09-13 16:01:28 +0900 |
commit | a43ffe7b214336b5ff551c8965d6fd16c63b13ed (patch) | |
tree | b50d6960573c049b1bae74b6fdc2c53c2fdedf2f /man/es/man1/dos2unix.htm | |
parent | 2fb41ec277dc25c2a3988fc0b3fc8dde07d36062 (diff) | |
download | dos2unix-a43ffe7b214336b5ff551c8965d6fd16c63b13ed.tar.gz dos2unix-a43ffe7b214336b5ff551c8965d6fd16c63b13ed.tar.bz2 dos2unix-a43ffe7b214336b5ff551c8965d6fd16c63b13ed.zip |
Imported Upstream version 7.3.5upstream/7.3.5
Change-Id: If401ea1da0876f720539b64ea208bc4e47e084fa
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'man/es/man1/dos2unix.htm')
-rw-r--r-- | man/es/man1/dos2unix.htm | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/man/es/man1/dos2unix.htm b/man/es/man1/dos2unix.htm index 99d8963..92f7867 100644 --- a/man/es/man1/dos2unix.htm +++ b/man/es/man1/dos2unix.htm @@ -2,7 +2,7 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> -<title>dos2unix 7.3.4 - Convertidor de archivos de texto de formato DOS/Mac a Unix y viceversa</title> +<title>dos2unix 7.3.5 - Convertidor de archivos de texto de formato DOS/Mac a Unix y viceversa</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rev="made" href="mailto:ASSI@cygwin.nonet" /> </head> @@ -234,6 +234,12 @@ <dl> +<dt id="pod0"><b>0</b></dt> +<dd> + +<p>Print the file information lines followed by a null character instead of a newline character. This enables correct interpretation of file names with spaces or quotes when flag c is used. Use this flag in combination with xargs(1) option <code>-0</code> or <code>--null</code>.</p> + +</dd> <dt id="d"><b>d</b></dt> <dd> @@ -310,11 +316,11 @@ <p>Convert only files that have DOS line breaks and leave the other files untouched:</p> -<pre><code> dos2unix -ic *.txt | xargs dos2unix</code></pre> +<pre><code> dos2unix -ic0 *.txt | xargs -0 dos2unix</code></pre> <p>Find text files that have DOS line breaks:</p> -<pre><code> find -name '*.txt' | xargs dos2unix -ic</code></pre> +<pre><code> find -name '*.txt' -print0 | xargs -0 dos2unix -ic</code></pre> </dd> <dt id="k---keepdate"><b>-k, --keepdate</b></dt> @@ -651,9 +657,13 @@ <h1 id="CONVERSIN-RECURSIVA">CONVERSIÓN RECURSIVA</h1> -<p>Use dos2unix en combinación con los comandos find(1) y xargs(1) para convertir recursivamente archivos de texto contenidos en un árbol de directorios. Por ejemplo para convertir todos los archivos .txt en el árbol de directorios debajo del directorio actual escriba:</p> +<p>In a Unix shell the find(1) and xargs(1) commands can be used to run dos2unix recursively over all text files in a directory tree. For instance to convert all .txt files in the directory tree under the current directory type:</p> + +<pre><code> find . -name '*.txt' -print0 |xargs -0 dos2unix</code></pre> + +<p>The find(1) option <code>-print0</code> and corresponding xargs(1) option <code>-0</code> are needed when there are files with spaces or quotes in the name. Otherwise these options can be omitted. Another option is to use find(1) with the <code>-exec</code> option:</p> -<pre><code> find . -name '*.txt' |xargs dos2unix</code></pre> +<pre><code> find . -name '*.txt' -exec dos2unix {} \;</code></pre> <p>In a Windows Command Prompt the following command can be used:</p> |