<?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: Joining Text Files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/joining-text-files/m-p/2457467#M770528</link>
    <description>Hi there,&lt;BR /&gt;&lt;BR /&gt;'cat' does not add newlines - my guess is that your NLs are already in the files.</description>
    <pubDate>Wed, 25 Oct 2000 06:33:58 GMT</pubDate>
    <dc:creator>Lasse Knudsen</dc:creator>
    <dc:date>2000-10-25T06:33:58Z</dc:date>
    <item>
      <title>Joining Text Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/joining-text-files/m-p/2457465#M770526</link>
      <description>How do I join text files with NO newline between them.&lt;BR /&gt;I've tried using 'cat file1 file2 file3' but this adds newlines.&lt;BR /&gt;&lt;BR /&gt;Dave Robertson</description>
      <pubDate>Wed, 25 Oct 2000 06:20:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/joining-text-files/m-p/2457465#M770526</guid>
      <dc:creator>David Robertson_1</dc:creator>
      <dc:date>2000-10-25T06:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Text Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/joining-text-files/m-p/2457466#M770527</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;this might be not the best solution but it works:&lt;BR /&gt;&lt;BR /&gt;echo $(cat file1)$(cat file2) &amp;gt; file&lt;BR /&gt;&lt;BR /&gt;OR if not ksh/posix-sh&lt;BR /&gt;&lt;BR /&gt;echo `cat file1``cat file2` &amp;gt; file&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Wed, 25 Oct 2000 06:33:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/joining-text-files/m-p/2457466#M770527</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-10-25T06:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Text Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/joining-text-files/m-p/2457467#M770528</link>
      <description>Hi there,&lt;BR /&gt;&lt;BR /&gt;'cat' does not add newlines - my guess is that your NLs are already in the files.</description>
      <pubDate>Wed, 25 Oct 2000 06:33:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/joining-text-files/m-p/2457467#M770528</guid>
      <dc:creator>Lasse Knudsen</dc:creator>
      <dc:date>2000-10-25T06:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Text Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/joining-text-files/m-p/2457468#M770529</link>
      <description>I have the sneaking suspicion that the presented solution might fail on utterly large files, based on what echo presumably can swallow.&lt;BR /&gt;If I were sure about the redundant n in the last line of each file I'd simply send it through the stream editor (awk, perl, or whatever), like this&lt;BR /&gt;$ sed '$d' file1 file2 ... fileN &amp;gt; fileCatted&lt;BR /&gt;If unsure about the trailing n better use a regex to filter.&lt;BR /&gt;TIMTOWTDI as they would say in Perl-lingo.&lt;BR /&gt;But my feeling may be totally errant because I'm relatively new to Unix.</description>
      <pubDate>Wed, 25 Oct 2000 07:47:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/joining-text-files/m-p/2457468#M770529</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2000-10-25T07:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Text Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/joining-text-files/m-p/2457469#M770530</link>
      <description>Ooops, weren't aware of the disappearing of backslashes in the forum.&lt;BR /&gt;Of course, substitute \n for n</description>
      <pubDate>Wed, 25 Oct 2000 07:50:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/joining-text-files/m-p/2457469#M770530</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2000-10-25T07:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Text Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/joining-text-files/m-p/2457470#M770531</link>
      <description>Ooops, weren't aware of the disappearing of backslashes in the forum.&lt;BR /&gt;Of course, substitute \n for n</description>
      <pubDate>Wed, 25 Oct 2000 07:50:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/joining-text-files/m-p/2457470#M770531</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2000-10-25T07:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Text Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/joining-text-files/m-p/2457471#M770532</link>
      <description>Ooops, weren't aware of the disappearing of backslashes in the forum.&lt;BR /&gt;Of course, substitute \n for n</description>
      <pubDate>Wed, 25 Oct 2000 07:51:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/joining-text-files/m-p/2457471#M770532</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2000-10-25T07:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Text Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/joining-text-files/m-p/2457472#M770533</link>
      <description>Ooops, weren't aware of the disappearing of backslashes in the forum.&lt;BR /&gt;Of course, substitute \n for n</description>
      <pubDate>Wed, 25 Oct 2000 07:52:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/joining-text-files/m-p/2457472#M770533</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2000-10-25T07:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Text Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/joining-text-files/m-p/2457473#M770534</link>
      <description>David:&lt;BR /&gt;&lt;BR /&gt;See man pages for 'join'.  Is this what you seek?&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 25 Oct 2000 08:14:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/joining-text-files/m-p/2457473#M770534</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-10-25T08:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Text Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/joining-text-files/m-p/2457474#M770535</link>
      <description>I have to apologize for my silly postings.&lt;BR /&gt;First, the annoying repetitive last posting was due to a webserver failure.&lt;BR /&gt;Second, one should first try things before giving advice. ;-)&lt;BR /&gt;Third, I think I misunderstood the issue.&lt;BR /&gt;If it was for chopping the trailing \n of each line (what the echo from above is doing on my machine) then you could use this Perl oneliner (even the obsolete Perl 4 shipped with HP-UX should do the trick)&lt;BR /&gt;&lt;BR /&gt;$ perl -ne 'chop;print' file1 file2 ... fileN&lt;BR /&gt;&lt;BR /&gt;But of course, this is also easily done using sed or awk.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Oct 2000 08:27:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/joining-text-files/m-p/2457474#M770535</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2000-10-25T08:27:59Z</dc:date>
    </item>
  </channel>
</rss>

