Add alternative perl-free script for reformatting DOS text files.
Submitted by: David Jones <drj@helper.demon.co.uk> on -doc Reviewed by: jkoshy
This commit is contained in:
parent
eb99f9619e
commit
c5ab5a1e9b
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=4080
1 changed files with 12 additions and 1 deletions
|
|
@ -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' < dos-text-file > 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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue