<?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 help ~ in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2772166#M942322</link>
    <description>You have a file with &lt;BR /&gt;zzz&lt;BR /&gt;yyy&lt;BR /&gt;xxx&lt;BR /&gt;Let's call it file1.&lt;BR /&gt;&lt;BR /&gt;you want "IN A 10.10.10.10" added to each line?&lt;BR /&gt;&lt;BR /&gt;Ok. &lt;BR /&gt;Using a script.....&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;exec 3&lt;FILE1&gt;&lt;/FILE1&gt;while read LINE 0&amp;lt;&amp;amp;3&lt;BR /&gt;do&lt;BR /&gt;echo $LINE "IN A 10.10.10.10" &amp;gt; file2&lt;BR /&gt;done&lt;BR /&gt;3&amp;lt;&amp;amp;-&lt;BR /&gt;&lt;BR /&gt;Using vi.....&lt;BR /&gt;vi file1&lt;BR /&gt;:%s/$/IN A 10.10.10.10/&lt;BR /&gt;:wq!&lt;BR /&gt;&lt;BR /&gt;there you go. &lt;BR /&gt;Don't know what you WANT it for.  But at least you now have a way to append that stuff in a file.&lt;BR /&gt;Steve&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 26 Jul 2002 11:03:23 GMT</pubDate>
    <dc:creator>Steve Post</dc:creator>
    <dc:date>2002-07-26T11:03:23Z</dc:date>
    <item>
      <title>script help ~</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2772163#M942319</link>
      <description>Hi all&lt;BR /&gt;who could you give me clear answer..?&lt;BR /&gt;&lt;BR /&gt;see attached file..&lt;BR /&gt;thanks &lt;BR /&gt;any tips are helpful</description>
      <pubDate>Thu, 25 Jul 2002 00:15:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2772163#M942319</guid>
      <dc:creator>mw_4</dc:creator>
      <dc:date>2002-07-25T00:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: script help ~</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2772164#M942320</link>
      <description>Do you want to generate 8000 lines of hostnames that resolve to the same IP? This can be done using a wildcard:&lt;BR /&gt;&lt;BR /&gt;* IN A 10.10.10.10&lt;BR /&gt;&lt;BR /&gt;Or are you looking for a way to translate /etc/hosts to the appropriate `named` zone files? I'm not at work so I don't have access to the PERL script I've created to handle our specific needs. I'll get that posted if you'd like to see it.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Jul 2002 02:39:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2772164#M942320</guid>
      <dc:creator>Jordan Bean</dc:creator>
      <dc:date>2002-07-25T02:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: script help ~</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2772165#M942321</link>
      <description>Sorry,&lt;BR /&gt;&lt;BR /&gt;if you expect a clear answer, would you mind to utter your question clearly? ;-)&lt;BR /&gt;&lt;BR /&gt;I cannot recapitulate what you're trying to achieve.&lt;BR /&gt;Your attachment looks like a DNS zone file to me.&lt;BR /&gt;Do you want to automatically create/modify such files by a script?&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Jul 2002 07:21:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2772165#M942321</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2002-07-25T07:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: script help ~</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2772166#M942322</link>
      <description>You have a file with &lt;BR /&gt;zzz&lt;BR /&gt;yyy&lt;BR /&gt;xxx&lt;BR /&gt;Let's call it file1.&lt;BR /&gt;&lt;BR /&gt;you want "IN A 10.10.10.10" added to each line?&lt;BR /&gt;&lt;BR /&gt;Ok. &lt;BR /&gt;Using a script.....&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;exec 3&lt;FILE1&gt;&lt;/FILE1&gt;while read LINE 0&amp;lt;&amp;amp;3&lt;BR /&gt;do&lt;BR /&gt;echo $LINE "IN A 10.10.10.10" &amp;gt; file2&lt;BR /&gt;done&lt;BR /&gt;3&amp;lt;&amp;amp;-&lt;BR /&gt;&lt;BR /&gt;Using vi.....&lt;BR /&gt;vi file1&lt;BR /&gt;:%s/$/IN A 10.10.10.10/&lt;BR /&gt;:wq!&lt;BR /&gt;&lt;BR /&gt;there you go. &lt;BR /&gt;Don't know what you WANT it for.  But at least you now have a way to append that stuff in a file.&lt;BR /&gt;Steve&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Jul 2002 11:03:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2772166#M942322</guid>
      <dc:creator>Steve Post</dc:creator>
      <dc:date>2002-07-26T11:03:23Z</dc:date>
    </item>
  </channel>
</rss>

