<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DBAlife &#187; dos2unix</title>
	<atom:link href="http://www.dbalife.com/archives/tag/dos2unix/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dbalife.com</link>
	<description>网站系统架构实践</description>
	<lastBuildDate>Wed, 27 Jul 2011 09:57:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>清除文件中的^M</title>
		<link>http://www.dbalife.com/archives/80.html</link>
		<comments>http://www.dbalife.com/archives/80.html#comments</comments>
		<pubDate>Fri, 21 Mar 2008 02:00:56 +0000</pubDate>
		<dc:creator>skywalker</dc:creator>
				<category><![CDATA[操作系统]]></category>
		<category><![CDATA[dos2unix]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[^M]]></category>

		<guid isPermaLink="false">http://www.dbalife.com/?p=80</guid>
		<description><![CDATA[Windows和Linux存在文件格式的差异，当我们将一个Windows的文本传给linux后，vi这个文本可能会发现每行结尾都有一个^M。如何消除这个差异，linux为我们提供了dos2unix这个工具，如果要将linux文本转换为windows文本，则需要unix2dos # dos2unix --help dos2unix Copyright (c) 1994-1995 Benjamin Lin   Copyright (c) 1998 Bernd Johannes Wuebben (Version 3.0)   Copyright (c) 1998 Christian Wurll (Version 3.1) Usage: dos2unix [-hkqV] [-c convmode] [-o file ...] [-n infile outfile ...]  -h --help give this help  -k --keepdate keep output file date  -q --quiet quiet mode, suppress [...]
Related posts:<ol>
<li><a href='http://www.dbalife.com/archives/133.html' rel='bookmark' title='PIX logging Architecture所需perl module的几点注意'>PIX logging Architecture所需perl module的几点注意</a></li>
<li><a href='http://www.dbalife.com/archives/82.html' rel='bookmark' title='ubuntu7.10 JDK手动安装'>ubuntu7.10 JDK手动安装</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Windows和Linux存在文件格式的差异，当我们将一个Windows的文本传给linux后，vi这个文本可能会发现每行结尾都有一个^M。如何消除这个差异，linux为我们提供了dos2unix这个工具，如果要将linux文本转换为windows文本，则需要unix2dos</p>
<p><code><br />
# dos2unix --help<br />
dos2unix Copyright (c) 1994-1995 Benjamin Lin<br />
  Copyright (c) 1998 Bernd Johannes Wuebben (Version 3.0)<br />
  Copyright (c) 1998 Christian Wurll (Version 3.1)<br />
Usage: dos2unix [-hkqV] [-c convmode] [-o file ...] [-n infile outfile ...]<br />
 -h --help give this help<br />
 -k --keepdate keep output file date<br />
 -q --quiet quiet mode, suppress all warnings<br />
  always on in stdin-&gt;stdout mode<br />
 -V --version display version number<br />
 -c --convmode conversion mode<br />
 convmode ASCII, 7bit, ISO, Mac, default to ASCII<br />
 -l --newline add additional newline in all but Mac convmode<br />
 -o --oldfile write to old file<br />
 file ... files to convert in old file mode<br />
 -n --newfile write to new file<br />
 infile original file in new file mode<br />
 outfile output file in new file mode</code></p>
<p>Related posts:<ol>
<li><a href='http://www.dbalife.com/archives/133.html' rel='bookmark' title='PIX logging Architecture所需perl module的几点注意'>PIX logging Architecture所需perl module的几点注意</a></li>
<li><a href='http://www.dbalife.com/archives/82.html' rel='bookmark' title='ubuntu7.10 JDK手动安装'>ubuntu7.10 JDK手动安装</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dbalife.com/archives/80.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

