<?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 scripting in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2963470#M814486</link>
    <description>Hi,&lt;BR /&gt;If I have a file called file1 with the contents as follows:&lt;BR /&gt;&lt;BR /&gt;line1&lt;BR /&gt;line2&lt;BR /&gt;line2&lt;BR /&gt;&lt;BR /&gt;Is it possible to run a script to append the data from file1 into file2 in the following format:&lt;BR /&gt;&lt;BR /&gt;line1,line2,line3&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Trystan.</description>
    <pubDate>Thu, 01 May 2003 10:02:24 GMT</pubDate>
    <dc:creator>trystan macdonald_1</dc:creator>
    <dc:date>2003-05-01T10:02:24Z</dc:date>
    <item>
      <title>scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2963470#M814486</link>
      <description>Hi,&lt;BR /&gt;If I have a file called file1 with the contents as follows:&lt;BR /&gt;&lt;BR /&gt;line1&lt;BR /&gt;line2&lt;BR /&gt;line2&lt;BR /&gt;&lt;BR /&gt;Is it possible to run a script to append the data from file1 into file2 in the following format:&lt;BR /&gt;&lt;BR /&gt;line1,line2,line3&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Trystan.</description>
      <pubDate>Thu, 01 May 2003 10:02:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2963470#M814486</guid>
      <dc:creator>trystan macdonald_1</dc:creator>
      <dc:date>2003-05-01T10:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2963471#M814487</link>
      <description>#paste file1 file2 &amp;gt;file3</description>
      <pubDate>Thu, 01 May 2003 10:05:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2963471#M814487</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-05-01T10:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2963472#M814488</link>
      <description>Hi Trystan,&lt;BR /&gt;you could do something like this:&lt;BR /&gt; cat file1 | tr "\012" ","&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Thu, 01 May 2003 10:08:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2963472#M814488</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2003-05-01T10:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2963473#M814489</link>
      <description>hi Trystan,&lt;BR /&gt;&lt;BR /&gt;$ echo `cat file1`&lt;BR /&gt;&lt;BR /&gt;- ramd.</description>
      <pubDate>Thu, 01 May 2003 10:13:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2963473#M814489</guid>
      <dc:creator>Ramkumar Devanathan</dc:creator>
      <dc:date>2003-05-01T10:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2963474#M814490</link>
      <description>Hi Trystan:&lt;BR /&gt;&lt;BR /&gt;Another way:&lt;BR /&gt;&lt;BR /&gt;# xargs &amp;lt; filename&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 01 May 2003 10:23:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2963474#M814490</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-05-01T10:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2963475#M814491</link>
      <description>Thanks all for your help. This is now working.&lt;BR /&gt;Regards,&lt;BR /&gt;Trystan.</description>
      <pubDate>Thu, 01 May 2003 10:29:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2963475#M814491</guid>
      <dc:creator>trystan macdonald_1</dc:creator>
      <dc:date>2003-05-01T10:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2963476#M814492</link>
      <description>If you want the comma at the right place&lt;BR /&gt;&lt;BR /&gt;echo `cat file1` | sed -e 's/ /,/g'&lt;BR /&gt;&lt;BR /&gt;JL</description>
      <pubDate>Thu, 01 May 2003 10:32:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2963476#M814492</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2003-05-01T10:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2963477#M814493</link>
      <description>Trystan, i read your post wrong. Sorry for the mispost.&lt;BR /&gt;&lt;BR /&gt;here's another way - &lt;BR /&gt;&lt;BR /&gt;awk '{printf ("%s, ",$0}' file1&lt;BR /&gt;&lt;BR /&gt;- ramd.</description>
      <pubDate>Thu, 01 May 2003 10:39:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2963477#M814493</guid>
      <dc:creator>Ramkumar Devanathan</dc:creator>
      <dc:date>2003-05-01T10:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2963478#M814494</link>
      <description># perl -nle'push@x,$_}END{print join",",@x' file1 &amp;gt;&amp;gt;file2&lt;BR /&gt;&lt;BR /&gt;Enjoy, have FUN! H.Merijn</description>
      <pubDate>Thu, 01 May 2003 10:52:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2963478#M814494</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2003-05-01T10:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2963479#M814495</link>
      <description>YES!!, I beat Merijn for perl code length:&lt;BR /&gt;&lt;BR /&gt;perl -la0ne'print join",",@F' file1 &amp;gt; file2&lt;BR /&gt;&lt;BR /&gt;rgds, Robin...</description>
      <pubDate>Thu, 01 May 2003 11:56:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2963479#M814495</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2003-05-01T11:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2963480#M814496</link>
      <description>Robin, congrat :)&lt;BR /&gt;&lt;BR /&gt;Shall we start an obfuscation contest?&lt;BR /&gt;&lt;BR /&gt;Enjoy, have FUN! H.Merijn</description>
      <pubDate>Thu, 01 May 2003 12:00:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2963480#M814496</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2003-05-01T12:00:42Z</dc:date>
    </item>
  </channel>
</rss>

