<?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 command editing examples using cat, ed, and sed</title> <atom:link href="http://www.cyberciti.biz/tips/linux-command-cat-ed-and-sed.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/linux-command-cat-ed-and-sed.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: dodobrain</title><link>http://www.cyberciti.biz/tips/linux-command-cat-ed-and-sed.html#comment-146386</link> <dc:creator>dodobrain</dc:creator> <pubDate>Mon, 22 Dec 2008 14:57:44 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-command-cat-ed-and-sed.html#comment-146386</guid> <description>err.. can&#039;t preview/edit posts. Anyway, for the copy/pasta people:
&lt;code&gt;
cat -- -abc.txt
&lt;/code&gt;</description> <content:encoded><![CDATA[<p>err.. can&#8217;t preview/edit posts. Anyway, for the copy/pasta people:<br
/> <code><br
/> cat -- -abc.txt<br
/> </code></p> ]]></content:encoded> </item> <item><title>By: dodobrain</title><link>http://www.cyberciti.biz/tips/linux-command-cat-ed-and-sed.html#comment-146385</link> <dc:creator>dodobrain</dc:creator> <pubDate>Mon, 22 Dec 2008 14:56:10 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-command-cat-ed-and-sed.html#comment-146385</guid> <description>Anil,
You use the option terminator for exactly this reason, i.e. non-option arguments have prefixed &#039;-&#039; char:
cat -- -abc.txt
*None* of the above poster&#039;s possible solutions will work, as the &#039;-&#039; char will persist even after quoting, escaping or globbing. If you aren&#039;t convinced, you can try them out. The option terminator &#039;--&#039; (two hyphens) works on almost all GNU cmdline tools.</description> <content:encoded><![CDATA[<p>Anil,</p><p>You use the option terminator for exactly this reason, i.e. non-option arguments have prefixed &#8216;-&#8217; char:</p><p>cat &#8212; -abc.txt</p><p>*None* of the above poster&#8217;s possible solutions will work, as the &#8216;-&#8217; char will persist even after quoting, escaping or globbing. If you aren&#8217;t convinced, you can try them out. The option terminator &#8216;&#8211;&#8217; (two hyphens) works on almost all GNU cmdline tools.</p> ]]></content:encoded> </item> <item><title>By: jose martin</title><link>http://www.cyberciti.biz/tips/linux-command-cat-ed-and-sed.html#comment-144252</link> <dc:creator>jose martin</dc:creator> <pubDate>Thu, 03 Jul 2008 09:02:34 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-command-cat-ed-and-sed.html#comment-144252</guid> <description>Atleast one among the following should work
cat ?abc.txt
cat &quot;-abc.txt&quot;
cat \-abc.txt
Else you may rename that file to something normal by opening it in vi with  command like:
vi *abc.txt and when the required file opens in the vi, save it with a normal name.</description> <content:encoded><![CDATA[<p>Atleast one among the following should work<br
/> cat ?abc.txt<br
/> cat &#8220;-abc.txt&#8221;<br
/> cat \-abc.txt</p><p>Else you may rename that file to something normal by opening it in vi with  command like:<br
/> vi *abc.txt and when the required file opens in the vi, save it with a normal name.</p> ]]></content:encoded> </item> <item><title>By: Anil Alpati</title><link>http://www.cyberciti.biz/tips/linux-command-cat-ed-and-sed.html#comment-144074</link> <dc:creator>Anil Alpati</dc:creator> <pubDate>Mon, 16 Jun 2008 14:35:48 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-command-cat-ed-and-sed.html#comment-144074</guid> <description>I am facing problem while checking the text file in linux which is starting with minus sign
Example:
cat &quot;-abc.txt&quot;
Please send me the reply at your earliest.
Thanks,
Anil.Alpati</description> <content:encoded><![CDATA[<p>I am facing problem while checking the text file in linux which is starting with minus sign</p><p>Example:<br
/> cat &#8220;-abc.txt&#8221;</p><p>Please send me the reply at your earliest.</p><p>Thanks,<br
/> Anil.Alpati</p> ]]></content:encoded> </item> </channel> </rss>
