<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to veiw same file diff lines in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-veiw-same-file-diff-lines/m-p/4926418#M790771</link>
    <description>Hi Jayachandran ,&lt;BR /&gt;&lt;BR /&gt;Try split , it will split the file with 10 file of 100 lines each.&lt;BR /&gt;&lt;BR /&gt;Here it is :&lt;BR /&gt;&lt;BR /&gt;# split -l 100 file1 file2&lt;BR /&gt;&lt;BR /&gt;The output will be named automatically as&lt;BR /&gt;&lt;BR /&gt;file2aa&lt;BR /&gt;file2ab&lt;BR /&gt;file2ac&lt;BR /&gt;file2ad&lt;BR /&gt;file2ae&lt;BR /&gt;file2af&lt;BR /&gt;file2ag&lt;BR /&gt;file2ah&lt;BR /&gt;file2ai&lt;BR /&gt;file2aj&lt;BR /&gt;--------------&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Raj.</description>
    <pubDate>Thu, 15 Sep 2005 09:55:39 GMT</pubDate>
    <dc:creator>Raj D.</dc:creator>
    <dc:date>2005-09-15T09:55:39Z</dc:date>
    <item>
      <title>How to veiw same file diff lines</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-veiw-same-file-diff-lines/m-p/4926413#M790766</link>
      <description>&lt;BR /&gt;Hi&lt;BR /&gt;&lt;BR /&gt;  I have a file ll.log&lt;BR /&gt;&lt;BR /&gt; say thr is 1000 lines in this file. How i can extract 10 files each for seperate files.&lt;BR /&gt;&lt;BR /&gt; cat,head and tail commbination is capable of doing only one group of lines at a time. is thr a command that can extract mulitple group of lines at the same time.&lt;BR /&gt;&lt;BR /&gt; as if every file is too big it is taking a lot of time with cat head and tail.&lt;BR /&gt;&lt;BR /&gt;Thank You</description>
      <pubDate>Thu, 15 Sep 2005 09:18:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-veiw-same-file-diff-lines/m-p/4926413#M790766</guid>
      <dc:creator>jayachandran.g</dc:creator>
      <dc:date>2005-09-15T09:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to veiw same file diff lines</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-veiw-same-file-diff-lines/m-p/4926414#M790767</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;How about using the split command &lt;BR /&gt;&lt;BR /&gt;SYNOPSIS&lt;BR /&gt;      split [-l line_count] [-a suffix_length] [file [name]]&lt;BR /&gt;&lt;BR /&gt;      split [-b n[k|m]] [-a suffix_length] [file [name]]&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Thu, 15 Sep 2005 09:21:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-veiw-same-file-diff-lines/m-p/4926414#M790767</guid>
      <dc:creator>Robert-Jan Goossens_1</dc:creator>
      <dc:date>2005-09-15T09:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to veiw same file diff lines</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-veiw-same-file-diff-lines/m-p/4926415#M790768</link>
      <description>split -l 100 file outfile&lt;BR /&gt;&lt;BR /&gt;will create 10 output files with 100 lines from the input file in each.</description>
      <pubDate>Thu, 15 Sep 2005 09:23:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-veiw-same-file-diff-lines/m-p/4926415#M790768</guid>
      <dc:creator>Orhan Biyiklioglu</dc:creator>
      <dc:date>2005-09-15T09:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to veiw same file diff lines</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-veiw-same-file-diff-lines/m-p/4926416#M790769</link>
      <description>Thanks Robert and Orhan&lt;BR /&gt;&lt;BR /&gt;  Sorry the lines numbers are differing for first few files it iwll be 10, some times it will be 18 and 47 also. there are 4 combinations 10,28,47,192</description>
      <pubDate>Thu, 15 Sep 2005 09:28:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-veiw-same-file-diff-lines/m-p/4926416#M790769</guid>
      <dc:creator>jayachandran.g</dc:creator>
      <dc:date>2005-09-15T09:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to veiw same file diff lines</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-veiw-same-file-diff-lines/m-p/4926417#M790770</link>
      <description>You can try using sed to print the selected lines of a file.&lt;BR /&gt;&lt;BR /&gt;sed -n -e '1,5p' file will print only the lines from 1 to 5 and sed -n -e '5,10p' will print from 5 to 10.&lt;BR /&gt;&lt;BR /&gt;You can use this in a shell script to print different portions of the file and than redirect the output to different output files.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Sep 2005 09:35:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-veiw-same-file-diff-lines/m-p/4926417#M790770</guid>
      <dc:creator>Orhan Biyiklioglu</dc:creator>
      <dc:date>2005-09-15T09:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to veiw same file diff lines</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-veiw-same-file-diff-lines/m-p/4926418#M790771</link>
      <description>Hi Jayachandran ,&lt;BR /&gt;&lt;BR /&gt;Try split , it will split the file with 10 file of 100 lines each.&lt;BR /&gt;&lt;BR /&gt;Here it is :&lt;BR /&gt;&lt;BR /&gt;# split -l 100 file1 file2&lt;BR /&gt;&lt;BR /&gt;The output will be named automatically as&lt;BR /&gt;&lt;BR /&gt;file2aa&lt;BR /&gt;file2ab&lt;BR /&gt;file2ac&lt;BR /&gt;file2ad&lt;BR /&gt;file2ae&lt;BR /&gt;file2af&lt;BR /&gt;file2ag&lt;BR /&gt;file2ah&lt;BR /&gt;file2ai&lt;BR /&gt;file2aj&lt;BR /&gt;--------------&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Raj.</description>
      <pubDate>Thu, 15 Sep 2005 09:55:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-veiw-same-file-diff-lines/m-p/4926418#M790771</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2005-09-15T09:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to veiw same file diff lines</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-veiw-same-file-diff-lines/m-p/4926419#M790772</link>
      <description>The sed command will do exactly what you're looking for as long as you know the FROM and TO line numbers in the input file that need to be extracted into 10 separate files. For example:&lt;BR /&gt;&lt;BR /&gt;# sed '&lt;BR /&gt;&amp;gt; 1,10w 1.out&lt;BR /&gt;&amp;gt; 10,47w 2.out&lt;BR /&gt;&amp;gt; 18,47w 3.out&lt;BR /&gt;&amp;gt; 47,192w 4.out&lt;BR /&gt;&amp;gt; ' inputfile&lt;BR /&gt;&lt;BR /&gt;cheers!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Sep 2005 11:58:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-veiw-same-file-diff-lines/m-p/4926419#M790772</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-09-15T11:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to veiw same file diff lines</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-veiw-same-file-diff-lines/m-p/4926420#M790773</link>
      <description>Thanks for all your valuble reply by using sed command i have achived my target thank you.</description>
      <pubDate>Mon, 16 Jan 2006 09:52:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-veiw-same-file-diff-lines/m-p/4926420#M790773</guid>
      <dc:creator>jayachandran.g</dc:creator>
      <dc:date>2006-01-16T09:52:30Z</dc:date>
    </item>
  </channel>
</rss>

