<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Linux: Create Text File on Linux Shell / Command Line</title>
	<atom:link href="http://www.if-not-true-then-false.com/2010/linux-tip-create-append-temporary-file-without-editor/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.if-not-true-then-false.com/2010/linux-tip-create-append-temporary-file-without-editor/</link>
	<description>If !1 0 &#124; Linux and Development Guides</description>
	<lastBuildDate>Thu, 09 Feb 2012 21:09:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<a href="http://www.if-not-true-then-false.com/hp/fitting.php" rel="nofollow" style="display:none;">help</a>	<item>
		<title>By: JR</title>
		<link>http://www.if-not-true-then-false.com/2010/linux-tip-create-append-temporary-file-without-editor/comment-page-1/#comment-20809</link>
		<dc:creator>JR</dc:creator>
		<pubDate>Sun, 25 Dec 2011 16:52:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.if-not-true-then-false.com/?p=825#comment-20809</guid>
		<description>Hi john,

You can do following to get your command output to file:
&lt;pre lang=&quot;bash&quot;&gt;
## Create new file ##
command &gt; /path/to/file.txt

## Append to file ##
command &gt;&gt; /path/to/file.txt
&lt;/pre&gt;

Real example:
&lt;pre lang=&quot;bash&quot;&gt;
## Create new file ##
ls -la /var/log &gt; /tmp/var-log.txt

## Append to file ##
ls -la /var/log &gt;&gt; /tmp/var-log.txt
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hi john,</p>
<p>You can do following to get your command output to file:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="color:#D8D8D8;"><span style="color: #666666; font-style: italic;">## Create new file ##</span>
<span style="color: #d3d7cf">command</span> <span style=" color: #FFF;">&gt;</span> <span style=" color: #FFF;">/</span>path<span style=" color: #FFF;">/</span>to<span style=" color: #FFF;">/</span>file.txt
&nbsp;
<span style="color: #666666; font-style: italic;">## Append to file ##</span>
<span style="color: #d3d7cf">command</span> <span style=" color: #FFF;">&gt;&gt;</span> <span style=" color: #FFF;">/</span>path<span style=" color: #FFF;">/</span>to<span style=" color: #FFF;">/</span>file.txt</pre></div></div>

<p>Real example:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="color:#D8D8D8;"><span style="color: #666666; font-style: italic;">## Create new file ##</span>
<span style="color: #FFF; font-weight:bold;">ls</span> <span style="color: #BED6FF;">-la</span> <span style=" color: #FFF;">/</span>var<span style=" color: #FFF;">/</span>log <span style=" color: #FFF;">&gt;</span> <span style=" color: #FFF;">/</span>tmp<span style=" color: #FFF;">/</span>var-log.txt
&nbsp;
<span style="color: #666666; font-style: italic;">## Append to file ##</span>
<span style="color: #FFF; font-weight:bold;">ls</span> <span style="color: #BED6FF;">-la</span> <span style=" color: #FFF;">/</span>var<span style=" color: #FFF;">/</span>log <span style=" color: #FFF;">&gt;&gt;</span> <span style=" color: #FFF;">/</span>tmp<span style=" color: #FFF;">/</span>var-log.txt</pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://www.if-not-true-then-false.com/2010/linux-tip-create-append-temporary-file-without-editor/comment-page-1/#comment-20804</link>
		<dc:creator>john</dc:creator>
		<pubDate>Sat, 24 Dec 2011 19:59:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.if-not-true-then-false.com/?p=825#comment-20804</guid>
		<description>How could you copy the text in the shell to a file. Say I run a series of commands. Such as wget, tar. ./configure, make, make install. I want to save all the messages in a file.</description>
		<content:encoded><![CDATA[<p>How could you copy the text in the shell to a file. Say I run a series of commands. Such as wget, tar. ./configure, make, make install. I want to save all the messages in a file.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- This Quick Cache file was built for (  www.if-not-true-then-false.com/2010/linux-tip-create-append-temporary-file-without-editor/feed/ ) in 0.09961 seconds, on Feb 10th, 2012 at 8:44 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 10th, 2012 at 9:44 am UTC -->
