<?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: Script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3210584#M168445</link>
    <description>&lt;BR /&gt;with perl you can do &lt;BR /&gt;&lt;BR /&gt;$perl -pale 'next if ($. == 1); s/^/new/g' file1 &amp;gt; file2&lt;BR /&gt;&lt;BR /&gt;This skips the first line, adds new to the beginning of the rest of the lines. And &lt;BR /&gt;creates file2. &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 05 Mar 2004 10:05:47 GMT</pubDate>
    <dc:creator>Marvin Strong</dc:creator>
    <dc:date>2004-03-05T10:05:47Z</dc:date>
    <item>
      <title>Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3210582#M168443</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;I have a file which is having 1000 Line text. &lt;BR /&gt;&lt;BR /&gt;1st line is header line. &lt;BR /&gt;&lt;BR /&gt;I want to make an another file using this file adding some text "A" in beginning of each line avoiding header. &lt;BR /&gt;&lt;BR /&gt;I want to automate this through the script. I  want to provide file as input to the script. &lt;BR /&gt;&lt;BR /&gt;Please reply immediate, as this is some urgent requirement. &lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Prashant</description>
      <pubDate>Fri, 05 Mar 2004 09:32:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3210582#M168443</guid>
      <dc:creator>Prashant Zanwar_2</dc:creator>
      <dc:date>2004-03-05T09:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3210583#M168444</link>
      <description>Using awk;&lt;BR /&gt;&lt;BR /&gt;awk '{if (NR == 1) {print} else {print "EXTRA"$0}}'  FILE&lt;BR /&gt;&lt;BR /&gt;eg if your file contains&lt;BR /&gt;&lt;BR /&gt;HEADER&lt;BR /&gt;BODY&lt;BR /&gt;BODY&lt;BR /&gt;BODY&lt;BR /&gt;&lt;BR /&gt;The above awk will generate&lt;BR /&gt;&lt;BR /&gt;HEADER&lt;BR /&gt;EXTRABODY&lt;BR /&gt;EXTRABODY&lt;BR /&gt;EXTRABODY</description>
      <pubDate>Fri, 05 Mar 2004 09:45:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3210583#M168444</guid>
      <dc:creator>Chris Wilshaw</dc:creator>
      <dc:date>2004-03-05T09:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3210584#M168445</link>
      <description>&lt;BR /&gt;with perl you can do &lt;BR /&gt;&lt;BR /&gt;$perl -pale 'next if ($. == 1); s/^/new/g' file1 &amp;gt; file2&lt;BR /&gt;&lt;BR /&gt;This skips the first line, adds new to the beginning of the rest of the lines. And &lt;BR /&gt;creates file2. &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Mar 2004 10:05:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3210584#M168445</guid>
      <dc:creator>Marvin Strong</dc:creator>
      <dc:date>2004-03-05T10:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3210585#M168446</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;Suppose I want to put a soecial charcter ";" which is not happening, after EXTRA, please reply. &lt;BR /&gt;&lt;BR /&gt;Thanks and regards&lt;BR /&gt;Prashant</description>
      <pubDate>Fri, 05 Mar 2004 10:21:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3210585#M168446</guid>
      <dc:creator>Prashant Zanwar_2</dc:creator>
      <dc:date>2004-03-05T10:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3210586#M168447</link>
      <description>awk '{if (NR == 1) {print} else {print "EXTRA;"$0}}' FILE&lt;BR /&gt;&lt;BR /&gt;Courtesy Chris.&lt;BR /&gt;&lt;BR /&gt;Anil&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Mar 2004 10:25:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3210586#M168447</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-03-05T10:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3210587#M168448</link>
      <description>Just a change to the previous awk;&lt;BR /&gt;&lt;BR /&gt;awk '{if (NR == 1) {print} else {print "EXTRA;"$0}}' FILE&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Mar 2004 10:26:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3210587#M168448</guid>
      <dc:creator>Chris Wilshaw</dc:creator>
      <dc:date>2004-03-05T10:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3210588#M168449</link>
      <description>Really  really thankful for this brilliant response. &lt;BR /&gt;&lt;BR /&gt;Thanks and regards&lt;BR /&gt;Prashant&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Mar 2004 11:27:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3210588#M168449</guid>
      <dc:creator>Prashant Zanwar_2</dc:creator>
      <dc:date>2004-03-05T11:27:44Z</dc:date>
    </item>
  </channel>
</rss>

