From 927e5ea91e7069157ab5c82ffc96ff20b17859a7 Mon Sep 17 00:00:00 2001 From: Gabor Pali Date: Sat, 21 Jun 2008 07:33:03 +0000 Subject: [PATCH] Update Question 10.14: - Mark up perl(1) - Add elements - Mark up .bak extension with - Mark up perl with - Add a paragraph about dosunix Reviewed by: trhodes, danger Approved by: gabor --- en_US.ISO8859-1/books/faq/book.sgml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/en_US.ISO8859-1/books/faq/book.sgml b/en_US.ISO8859-1/books/faq/book.sgml index e17824bf07..b4d7eaeb95 100644 --- a/en_US.ISO8859-1/books/faq/book.sgml +++ b/en_US.ISO8859-1/books/faq/book.sgml @@ -6141,12 +6141,12 @@ options SYSVMSG # enable for messaging - Use this perl command: + Use this &man.perl.1; command: - &prompt.user; perl -i.bak -npe 's/\r\n/\n/g' file ... + &prompt.user; perl -i.bak -npe 's/\r\n/\n/g' file(s) - file is the file(s) to process. The modification is done - in-place, with the original file stored with a .bak + where file(s) is one or more files to process. The modification is done + in-place, with the original file stored with a .bak extension. Alternatively you can use the @@ -6158,7 +6158,12 @@ options SYSVMSG # enable for messaging dos-text-file is the file containing DOS text while unix-file will contain the converted output. This can be quite a bit - faster than using perl. + faster than using perl. + + Yet another way to reformat DOS text files is to use the + converters/dosunix port + from the Ports Collection. Consult its documentation about + the details.