<?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 Need urgent Help, How to modify file using awk or sed?? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/need-urgent-help-how-to-modify-file-using-awk-or-sed/m-p/2643256#M79607</link>
    <description>Hi to all,&lt;BR /&gt;&lt;BR /&gt;I need to relese a script by today itself. please help me to do this. &lt;BR /&gt;&lt;BR /&gt;I have a big file lets say 65 thousand lines. it is a tab seperated text file. i need to add one more columne at the end of every line ( tab seperated). the value of that column is the first column of the first line.&lt;BR /&gt;&lt;BR /&gt;example:&lt;BR /&gt;&lt;BR /&gt;Inputfile:&lt;BR /&gt;&lt;BR /&gt;NY^hhhhh^hhhhh^kkkkk^gggg&lt;BR /&gt;hhh^jjjjj^9999^44444&lt;BR /&gt;888^hhhh^443444^hhhhhh&lt;BR /&gt;&lt;BR /&gt;Output file&lt;BR /&gt;&lt;BR /&gt;NY^hhhhh^hhhhh^kkkkk^gggg^NY&lt;BR /&gt;hhh^jjjjj^9999^44444^NY&lt;BR /&gt;888^hhhh^443444^hhhhhh^NY&lt;BR /&gt;&lt;BR /&gt;here '^' represent tab character.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;please help me ASAP.&lt;BR /&gt;&lt;BR /&gt;vivek S.&lt;BR /&gt;viveks@fox.com&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 11 Jan 2002 18:01:05 GMT</pubDate>
    <dc:creator>Vivek_3</dc:creator>
    <dc:date>2002-01-11T18:01:05Z</dc:date>
    <item>
      <title>Need urgent Help, How to modify file using awk or sed??</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-urgent-help-how-to-modify-file-using-awk-or-sed/m-p/2643256#M79607</link>
      <description>Hi to all,&lt;BR /&gt;&lt;BR /&gt;I need to relese a script by today itself. please help me to do this. &lt;BR /&gt;&lt;BR /&gt;I have a big file lets say 65 thousand lines. it is a tab seperated text file. i need to add one more columne at the end of every line ( tab seperated). the value of that column is the first column of the first line.&lt;BR /&gt;&lt;BR /&gt;example:&lt;BR /&gt;&lt;BR /&gt;Inputfile:&lt;BR /&gt;&lt;BR /&gt;NY^hhhhh^hhhhh^kkkkk^gggg&lt;BR /&gt;hhh^jjjjj^9999^44444&lt;BR /&gt;888^hhhh^443444^hhhhhh&lt;BR /&gt;&lt;BR /&gt;Output file&lt;BR /&gt;&lt;BR /&gt;NY^hhhhh^hhhhh^kkkkk^gggg^NY&lt;BR /&gt;hhh^jjjjj^9999^44444^NY&lt;BR /&gt;888^hhhh^443444^hhhhhh^NY&lt;BR /&gt;&lt;BR /&gt;here '^' represent tab character.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;please help me ASAP.&lt;BR /&gt;&lt;BR /&gt;vivek S.&lt;BR /&gt;viveks@fox.com&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Jan 2002 18:01:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-urgent-help-how-to-modify-file-using-awk-or-sed/m-p/2643256#M79607</guid>
      <dc:creator>Vivek_3</dc:creator>
      <dc:date>2002-01-11T18:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need urgent Help, How to modify file using awk or sed??</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-urgent-help-how-to-modify-file-using-awk-or-sed/m-p/2643257#M79608</link>
      <description>Well a little snippet of code:&lt;BR /&gt;&lt;BR /&gt;export FIELD=`head -1 filename| awk ' { print $1 } '&lt;BR /&gt;awk -v FIELD=$FIELD '{ FS = "\t" } { print $0, FIELD } ' &lt;FILENAME&gt;filename.new&lt;BR /&gt;&lt;BR /&gt;should handle the job for you.&lt;BR /&gt;&lt;BR /&gt;hth &lt;BR /&gt;mark&lt;/FILENAME&gt;</description>
      <pubDate>Fri, 11 Jan 2002 23:21:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-urgent-help-how-to-modify-file-using-awk-or-sed/m-p/2643257#M79608</guid>
      <dc:creator>Mark Fenton</dc:creator>
      <dc:date>2002-01-11T23:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need urgent Help, How to modify file using awk or sed??</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-urgent-help-how-to-modify-file-using-awk-or-sed/m-p/2643258#M79609</link>
      <description>Thanks Mark.&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Jan 2002 23:32:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-urgent-help-how-to-modify-file-using-awk-or-sed/m-p/2643258#M79609</guid>
      <dc:creator>Vivek_3</dc:creator>
      <dc:date>2002-01-11T23:32:11Z</dc:date>
    </item>
  </channel>
</rss>

