aboutsummaryrefslogtreecommitdiff
path: root/FAQ/admin.sgml
diff options
context:
space:
mode:
authorJoseph Koshy <jkoshy@FreeBSD.org>1999-01-19 03:05:44 +0000
committerJoseph Koshy <jkoshy@FreeBSD.org>1999-01-19 03:05:44 +0000
commitc5ab5a1e9bc901386593eb2e11580fc120fa77f9 (patch)
treed4333d856455d0d5daa9172302fda73cd9293179 /FAQ/admin.sgml
parenteb99f9619ef76bb105a8d698fb210354da235505 (diff)
downloaddoc-c5ab5a1e9bc901386593eb2e11580fc120fa77f9.tar.gz
doc-c5ab5a1e9bc901386593eb2e11580fc120fa77f9.zip
Add alternative perl-free script for reformatting DOS text files.
Submitted by: David Jones <drj@helper.demon.co.uk> on -doc Reviewed by: jkoshy
Notes
Notes: svn path=/head/; revision=4080
Diffstat (limited to 'FAQ/admin.sgml')
-rw-r--r--FAQ/admin.sgml13
1 files changed, 12 insertions, 1 deletions
diff --git a/FAQ/admin.sgml b/FAQ/admin.sgml
index 61ee2840c4..df5a6eee69 100644
--- a/FAQ/admin.sgml
+++ b/FAQ/admin.sgml
@@ -1,4 +1,4 @@
-<!-- $Id: admin.sgml,v 1.13 1999-01-12 00:49:15 wosch Exp $ -->
+<!-- $Id: admin.sgml,v 1.14 1999-01-19 03:05:44 jkoshy Exp $ -->
<!-- The FreeBSD Documentation Project -->
<sect>
@@ -835,6 +835,17 @@ perl -i.bak -pe 's/\r\n/\n/g' file ...
<p>file is the file(s) to process. The modification is done in-place,
with the original file stored with a .bak extension.
+ <p>Alternatively you can use the <url url="/cgi/man.cgi?tr"
+ name="tr(1)"> command:
+
+<verb>
+tr -d '\r' &lt; dos-text-file &gt; unix-file
+</verb>
+
+ <p>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.
+
<sect1>
<heading>How do I kill processes by name?</heading>