Update Question 10.14:

- Mark up perl(1)
- Add <replaceable> elements
- Mark up .bak extension with <filename>
- Mark up perl with <command>
- Add a paragraph about dosunix

Reviewed by:  trhodes, danger
Approved by:  gabor
This commit is contained in:
Gabor Pali 2008-06-21 07:33:03 +00:00
parent 9b2257fa36
commit 927e5ea91e
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=32330

View file

@ -6141,12 +6141,12 @@ options SYSVMSG # enable for messaging</programlisting>
<answer>
<para>Use this perl command:</para>
<para>Use this &man.perl.1; command:</para>
<screen>&prompt.user; <userinput>perl -i.bak -npe 's/\r\n/\n/g' file ...</userinput></screen>
<screen>&prompt.user; <userinput>perl -i.bak -npe 's/\r\n/\n/g' <replaceable>file(s)</replaceable></userinput></screen>
<para>file is the file(s) to process. The modification is done
in-place, with the original file stored with a .bak
<para>where <replaceable>file(s)</replaceable> is one or more files to process. The modification is done
in-place, with the original file stored with a <filename>.bak</filename>
extension.</para>
<para>Alternatively you can use the
@ -6158,7 +6158,12 @@ options SYSVMSG # enable for messaging</programlisting>
<para><replaceable>dos-text-file</replaceable> is the file
containing DOS text while <replaceable>unix-file</replaceable>
will contain the converted output. This can be quite a bit
faster than using perl.</para>
faster than using <command>perl</command>.</para>
<para>Yet another way to reformat DOS text files is to use the
<filename role="package">converters/dosunix</filename> port
from the Ports Collection. Consult its documentation about
the details.</para>
</answer>
</qandaentry>