<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rahul Mahendru</title>
    <description>The latest articles on DEV Community by Rahul Mahendru (@rahul_mahendru_45d895855b).</description>
    <link>https://dev.to/rahul_mahendru_45d895855b</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1652007%2Fc0dd3185-713d-41d1-bc56-1d754f9556f5.png</url>
      <title>DEV Community: Rahul Mahendru</title>
      <link>https://dev.to/rahul_mahendru_45d895855b</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rahul_mahendru_45d895855b"/>
    <language>en</language>
    <item>
      <title>To Add a new header in second line of the existing file and 3 rd. column should be sum of the records</title>
      <dc:creator>Rahul Mahendru</dc:creator>
      <pubDate>Wed, 19 Jun 2024 14:37:40 +0000</pubDate>
      <link>https://dev.to/rahul_mahendru_45d895855b/to-add-a-new-header-in-second-line-of-the-existing-file-and-3-rd-column-should-be-sum-of-the-records-2a7g</link>
      <guid>https://dev.to/rahul_mahendru_45d895855b/to-add-a-new-header-in-second-line-of-the-existing-file-and-3-rd-column-should-be-sum-of-the-records-2a7g</guid>
      <description>&lt;p&gt;In source i am getting below data in csv format &lt;br&gt;
Comp    CAD Amount&lt;br&gt;
2135    CAD  156.56 &lt;br&gt;
2135    CAD  171.33 &lt;br&gt;
2135    CAD  156.56 &lt;br&gt;
2135    CAD  156.56 &lt;br&gt;
2135    CAD  137.15 &lt;/p&gt;

&lt;p&gt;I need to add need header in Bottum of the old header&lt;br&gt;&lt;br&gt;
example &lt;br&gt;
orignal header---&amp;gt;Comp      CAD                       Amount&lt;br&gt;
added_new header-&amp;gt;Customer  second_hader(with empty) sum(Amount)&lt;/p&gt;

&lt;p&gt;Sum(amount) data will show like this&lt;/p&gt;

&lt;p&gt;Comp code    CAD    Amount&lt;br&gt;
Customer Invoice         778.16 &lt;br&gt;
2135             CAD     156.56 &lt;br&gt;
2135             CAD     171.33 &lt;br&gt;
2135             CAD     156.56 &lt;br&gt;
2135             CAD     156.56 &lt;br&gt;
2135             CAD     137.15 &lt;/p&gt;

&lt;p&gt;How I write the code in shell script and save the data in existing file&lt;/p&gt;

</description>
      <category>help</category>
    </item>
  </channel>
</rss>
