<?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: append the output to a .csv format in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/append-the-output-to-a-csv-format/m-p/4790088#M641216</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;My query is that ---&lt;BR /&gt;is it possible to redirect the o/p of any shell script to a excel sheet to a particular couln or row?</description>
    <pubDate>Fri, 20 May 2011 02:45:16 GMT</pubDate>
    <dc:creator>shikhar_1</dc:creator>
    <dc:date>2011-05-20T02:45:16Z</dc:date>
    <item>
      <title>append the output to a .csv format</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/append-the-output-to-a-csv-format/m-p/4790085#M641213</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I got stuck while appending the output of command in .csv format at a aprticular column in my .csv file.&lt;BR /&gt;Actually i need to create a report for that i have already created the shell script and its output is coming in number suppose "32" and i have to put this number in a excel sheet to a particular location.&lt;BR /&gt;Pls help me.&lt;BR /&gt;&lt;BR /&gt;Reagrds,&lt;BR /&gt;&lt;BR /&gt;Shikhar Verma</description>
      <pubDate>Fri, 20 May 2011 02:12:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/append-the-output-to-a-csv-format/m-p/4790085#M641213</guid>
      <dc:creator>shikhar_1</dc:creator>
      <dc:date>2011-05-20T02:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: append the output to a .csv format</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/append-the-output-to-a-csv-format/m-p/4790086#M641214</link>
      <description>&lt;!--!*#--&gt;&amp;gt; Pls help me.&lt;BR /&gt;&lt;BR /&gt;You first.  We non-psychics can't see any of&lt;BR /&gt;your data, and some of us can't guess what&lt;BR /&gt;you wish to do.&lt;BR /&gt;&lt;BR /&gt;What do you have now?&lt;BR /&gt;&lt;BR /&gt;What would you like to get?&lt;BR /&gt;&lt;BR /&gt;Actual examples would probably be more useful&lt;BR /&gt;than vague descriptions.&lt;BR /&gt;&lt;BR /&gt;Where are you trying to do this?&lt;BR /&gt;&lt;BR /&gt;      uname -a</description>
      <pubDate>Fri, 20 May 2011 02:27:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/append-the-output-to-a-csv-format/m-p/4790086#M641214</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-05-20T02:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: append the output to a .csv format</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/append-the-output-to-a-csv-format/m-p/4790087#M641215</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am doing it on HP-UX server. My current script is giving me the output which i need to put it in a particular column of excel sheet.&lt;BR /&gt;&lt;BR /&gt;./myscript this script is giving me some o/p&lt;BR /&gt;and i wanted to put this o/p in my report file, which is excel file.</description>
      <pubDate>Fri, 20 May 2011 02:38:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/append-the-output-to-a-csv-format/m-p/4790087#M641215</guid>
      <dc:creator>shikhar_1</dc:creator>
      <dc:date>2011-05-20T02:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: append the output to a .csv format</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/append-the-output-to-a-csv-format/m-p/4790088#M641216</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;My query is that ---&lt;BR /&gt;is it possible to redirect the o/p of any shell script to a excel sheet to a particular couln or row?</description>
      <pubDate>Fri, 20 May 2011 02:45:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/append-the-output-to-a-csv-format/m-p/4790088#M641216</guid>
      <dc:creator>shikhar_1</dc:creator>
      <dc:date>2011-05-20T02:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: append the output to a .csv format</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/append-the-output-to-a-csv-format/m-p/4790089#M641217</link>
      <description>Say my text file data is:&lt;BR /&gt;&lt;BR /&gt;15-dec-2008 15-dec-2009&lt;BR /&gt;16-dec-2008 16-dec-2009&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;say my first excel column is:&lt;BR /&gt;&lt;BR /&gt;column1 column2 column3&lt;BR /&gt;server1&lt;BR /&gt;server2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I want output as below:&lt;BR /&gt;&lt;BR /&gt;column1 | column2 | column3&lt;BR /&gt;server1 | 15-dec-2008 | 15-dec-2009&lt;BR /&gt;server2 | 16-dec-2008 | 16-dec-2009</description>
      <pubDate>Fri, 20 May 2011 02:54:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/append-the-output-to-a-csv-format/m-p/4790089#M641217</guid>
      <dc:creator>shikhar_1</dc:creator>
      <dc:date>2011-05-20T02:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: append the output to a .csv format</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/append-the-output-to-a-csv-format/m-p/4790090#M641218</link>
      <description>Ok Shikar,&lt;BR /&gt;&lt;BR /&gt;you are getting closer to a proper explanation.&lt;BR /&gt;IF this exactly describes the problem you can solve it like so:&lt;BR /&gt;&lt;BR /&gt;$ cat &amp;gt; text.txt&lt;BR /&gt;15-dec-2008 15-dec-2009&lt;BR /&gt;16-dec-2008 16-dec-2009&lt;BR /&gt;$ cat &amp;gt; excel.csv&lt;BR /&gt;column1 column2 column3&lt;BR /&gt;server1&lt;BR /&gt;server2&lt;BR /&gt;$ awk 'BEGIN { print } 1' text.txt | paste -d' '  excel.csv - | sed 's/ / | /g'&lt;BR /&gt;column1 | column2 | column3 |&lt;BR /&gt;server1 | 15-dec-2008 | 15-dec-2009&lt;BR /&gt;server2 | 16-dec-2008 | 16-dec-2009&lt;BR /&gt;&lt;BR /&gt;First we use AWK to feed a pipe with a blank line and the contents of the text file.&lt;BR /&gt;That gets patsted with the excel file using a space, not the default tab, as seperator.&lt;BR /&gt;Finally replace each space with a spaced-bar/pipe&lt;BR /&gt;&lt;BR /&gt;I doubt that this will solve the problem though.&lt;BR /&gt;&lt;BR /&gt;You really want to know more about the data. Like whether you know for sure each line is in the right order.&lt;BR /&gt;Maybe there is a 'key' column perhaps 'system same' and we should use JOIN, not PASTE&lt;BR /&gt;&lt;BR /&gt;Maybe you should really take a huge step back and revisit how the data comes to be. &lt;BR /&gt;Whether the column headers are meaningful and that meanig can be used.&lt;BR /&gt;Whether column headers are hardcoded or should/could be generated. &lt;BR /&gt;Whether the lines just have order, or have a 'tag'/'key'.&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;Hein&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 20 May 2011 03:25:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/append-the-output-to-a-csv-format/m-p/4790090#M641218</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2011-05-20T03:25:49Z</dc:date>
    </item>
  </channel>
</rss>

