<?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>My Technology Notepad &#187; linux</title>
	<atom:link href="http://www.crackjet.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.crackjet.com</link>
	<description>The tech journal of Crackjet</description>
	<lastBuildDate>Tue, 23 Feb 2010 03:16:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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>Crackjet</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 &#8216;1,1000p&#8217; &#124; [...]]]></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 &#8216;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 &#8216;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>

