<?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>Crackjet Simplified &#187; unix</title>
	<atom:link href="http://www.crackjet.com/tag/unix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.crackjet.com</link>
	<description>My Journal</description>
	<lastBuildDate>Sat, 31 Dec 2011 16:21:20 +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>Null characters in file</title>
		<link>http://www.crackjet.com/how-to/null-characters-in-file/</link>
		<comments>http://www.crackjet.com/how-to/null-characters-in-file/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 05:37:16 +0000</pubDate>
		<dc:creator>Kimmy</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[]]></category>
		<category><![CDATA[null characters]]></category>
		<category><![CDATA[tr]]></category>
		<category><![CDATA[tr command]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.crackjet.com/?p=36</guid>
		<description><![CDATA[Some program could not handle interfacing files which contains null characters and has often causes support people lots of run around to find the cause.
A simple way to identify the locations of null characters in a flat file is by using the following command. Works well each time for me.  
&#160;
tr  [...]]]></description>
			<content:encoded><![CDATA[<p>Some program could not handle interfacing files which contains null characters and has often causes support people lots of run around to find the cause.</p>
<p>A simple way to identify the locations of null characters in a flat file is by using the following command. Works well each time for me. <img src='http://www.crackjet.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<p>tr &#8216;\0&#8242; &#8216;@&#8217; &lt; INPUT_FILE &gt; OUTPUT_FILE</p>
<p>&nbsp;</p>
<p>I LOVE UNIX!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crackjet.com/how-to/null-characters-in-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Extract first 100 lines from a file in UNIX</title>
		<link>http://www.crackjet.com/how-to/extract-first-100-lines-from-a-file-in-unix/</link>
		<comments>http://www.crackjet.com/how-to/extract-first-100-lines-from-a-file-in-unix/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 03:16:41 +0000</pubDate>
		<dc:creator>Kimmy</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[file manipulation]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.crackjet.com/?p=16</guid>
		<description><![CDATA[I was tasked to get first 100 lines of records from a database dump. While searching big brother G, I found the solution here:- how to extract a range of lines from a file provided by zazzybob.
Here&#8217;s the solutions:-
You could also pipe though sed to extract the range &#8211; e.g.
blah &#124; sed -n &#8217;1,1000p&#8217;  [...]]]></description>
			<content:encoded><![CDATA[<p>I was tasked to get first 100 lines of records from a database dump. While searching big brother G, I found the solution here:- <a href="http://www.unix.com/shell-programming-scripting/14477-how-extract-range-lines-file.html#post53245" target="_blank">how to extract a range of lines from a file</a> provided by zazzybob.</p>
<p>Here&#8217;s the solutions:-</p>
<blockquote><p><span style="color: #800000;">You could also pipe though <acronym title="Stream Editor">sed</acronym> to extract the range &#8211; e.g.<br />
blah | <acronym title="Stream Editor">sed</acronym> -n &#8217;1,1000p&#8217; | blah<br />
to extract the first 1000 lines of the file</span></p></blockquote>
<p>How I uses it:-</p>
<blockquote><p><span style="color: #800000;">cat file.unl | sed -n &#8217;1,100p&#8217; &gt; out100.unl</span></p></blockquote>
<p>Cheers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crackjet.com/how-to/extract-first-100-lines-from-a-file-in-unix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

