<?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: files with hostname in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/files-with-hostname/m-p/3393247#M705803</link>
    <description>Change the script as,&lt;BR /&gt;&lt;BR /&gt; while read line; do&lt;BR /&gt;  echo `hostname`:$line&lt;BR /&gt; done &amp;lt; input &amp;gt; ouput&lt;BR /&gt;&lt;BR /&gt;Else with perl script as,&lt;BR /&gt;&lt;BR /&gt; perl -pe 's/^/'$(hostname)'/g' inputfile &amp;gt; outputfile</description>
    <pubDate>Tue, 05 Oct 2004 03:22:21 GMT</pubDate>
    <dc:creator>Muthukumar_5</dc:creator>
    <dc:date>2004-10-05T03:22:21Z</dc:date>
    <item>
      <title>files with hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-with-hostname/m-p/3393243#M705799</link>
      <description>Hello&lt;BR /&gt;I have one file on different servers like:&lt;BR /&gt;logfile1&lt;BR /&gt;&lt;BR /&gt;I need a file with:&lt;BR /&gt;server1:logfile1 (here each line of logfile1)&lt;BR /&gt;server2:logfile1 (here each line of logfile1)&lt;BR /&gt;server3:logfile1 (here ....)&lt;BR /&gt;&lt;BR /&gt;With cat logfile1 &amp;gt;&amp;gt; output I do not have the server-names.&lt;BR /&gt;Thanks for help&lt;BR /&gt;Ralf</description>
      <pubDate>Tue, 05 Oct 2004 02:51:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-with-hostname/m-p/3393243#M705799</guid>
      <dc:creator>Ralf Buchhold</dc:creator>
      <dc:date>2004-10-05T02:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: files with hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-with-hostname/m-p/3393244#M705800</link>
      <description>sed "s/^/$(hostname): /g" logfile1 &amp;gt;&amp;gt;output1</description>
      <pubDate>Tue, 05 Oct 2004 03:00:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-with-hostname/m-p/3393244#M705800</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2004-10-05T03:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: files with hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-with-hostname/m-p/3393245#M705801</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can transform each file as follows:&lt;BR /&gt;&lt;BR /&gt;awk '{print hn":"$0}' hn=$(hostname) logfile1 &amp;gt; logfile1.am&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Tue, 05 Oct 2004 03:03:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-with-hostname/m-p/3393245#M705801</guid>
      <dc:creator>Victor Fridyev</dc:creator>
      <dc:date>2004-10-05T03:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: files with hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-with-hostname/m-p/3393246#M705802</link>
      <description>we can do this as,&lt;BR /&gt;&lt;BR /&gt; while read line; do &lt;BR /&gt; &amp;gt;echo $hostname:$line &lt;BR /&gt; &amp;gt;done &amp;lt; &lt;LOGFILE&gt; &amp;gt; &lt;NEWFILE&gt;&lt;BR /&gt;&lt;BR /&gt;HTH.&lt;BR /&gt;&lt;/NEWFILE&gt;&lt;/LOGFILE&gt;</description>
      <pubDate>Tue, 05 Oct 2004 03:16:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-with-hostname/m-p/3393246#M705802</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-10-05T03:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: files with hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-with-hostname/m-p/3393247#M705803</link>
      <description>Change the script as,&lt;BR /&gt;&lt;BR /&gt; while read line; do&lt;BR /&gt;  echo `hostname`:$line&lt;BR /&gt; done &amp;lt; input &amp;gt; ouput&lt;BR /&gt;&lt;BR /&gt;Else with perl script as,&lt;BR /&gt;&lt;BR /&gt; perl -pe 's/^/'$(hostname)'/g' inputfile &amp;gt; outputfile</description>
      <pubDate>Tue, 05 Oct 2004 03:22:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-with-hostname/m-p/3393247#M705803</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-10-05T03:22:21Z</dc:date>
    </item>
  </channel>
</rss>

