<?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: How can I do this in Unix ? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-do-this-in-unix/m-p/3710494#M790908</link>
    <description># perl -pe's/\n/:/' file&lt;BR /&gt;&lt;BR /&gt;Enjoyn Have FUN! H.Merijn</description>
    <pubDate>Mon, 16 Jan 2006 20:43:39 GMT</pubDate>
    <dc:creator>H.Merijn Brand (procura</dc:creator>
    <dc:date>2006-01-16T20:43:39Z</dc:date>
    <item>
      <title>How can I do this in Unix ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-do-this-in-unix/m-p/3710493#M790907</link>
      <description>I have a file that contains several hundred hostnames: &lt;BR /&gt;host1.domain.com &lt;BR /&gt;host2.domain.com &lt;BR /&gt;host3.domain.com &lt;BR /&gt;I need to put all hosts on one line and serate the name with a colon to look like this: &lt;BR /&gt;host1.domain.com:host2.domain.com:host4.domain.com. &lt;BR /&gt;How can I read the hostnames from a file and seperate them with a colon?</description>
      <pubDate>Mon, 16 Jan 2006 20:40:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-do-this-in-unix/m-p/3710493#M790907</guid>
      <dc:creator>Rob Johnson_3</dc:creator>
      <dc:date>2006-01-16T20:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I do this in Unix ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-do-this-in-unix/m-p/3710494#M790908</link>
      <description># perl -pe's/\n/:/' file&lt;BR /&gt;&lt;BR /&gt;Enjoyn Have FUN! H.Merijn</description>
      <pubDate>Mon, 16 Jan 2006 20:43:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-do-this-in-unix/m-p/3710494#M790908</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2006-01-16T20:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can I do this in Unix ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-do-this-in-unix/m-p/3710495#M790909</link>
      <description>That did it!&lt;BR /&gt;&lt;BR /&gt;Thank you.</description>
      <pubDate>Mon, 16 Jan 2006 21:18:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-do-this-in-unix/m-p/3710495#M790909</guid>
      <dc:creator>Rob Johnson_3</dc:creator>
      <dc:date>2006-01-16T21:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I do this in Unix ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-do-this-in-unix/m-p/3710496#M790910</link>
      <description>I just use:&lt;BR /&gt;#cat oldfile|awk '{printf("%s"":",$1)}'&amp;gt;newfile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;tienna</description>
      <pubDate>Mon, 16 Jan 2006 23:23:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-do-this-in-unix/m-p/3710496#M790910</guid>
      <dc:creator>Nguyen Anh Tien</dc:creator>
      <dc:date>2006-01-16T23:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can I do this in Unix ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-do-this-in-unix/m-p/3710497#M790911</link>
      <description>for i in `cat file`; do echo -n $i "&lt;SEPARATOR&gt;"; done; echo; &lt;BR /&gt;&lt;BR /&gt;&lt;/SEPARATOR&gt;</description>
      <pubDate>Wed, 18 Jan 2006 03:05:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-do-this-in-unix/m-p/3710497#M790911</guid>
      <dc:creator>Marton Ferenc</dc:creator>
      <dc:date>2006-01-18T03:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can I do this in Unix ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-do-this-in-unix/m-p/3710498#M790912</link>
      <description>Hi,&lt;BR /&gt;%cat tt&lt;BR /&gt;a&lt;BR /&gt;b&lt;BR /&gt;# change new line to ':'&lt;BR /&gt;%list=$(tr -s '\n' ':'&lt;TT&gt;&lt;BR /&gt;# Remove last ':'&lt;BR /&gt;echo ${list%%:}&lt;BR /&gt;a:b&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art&lt;/TT&gt;</description>
      <pubDate>Wed, 18 Jan 2006 05:00:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-do-this-in-unix/m-p/3710498#M790912</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2006-01-18T05:00:19Z</dc:date>
    </item>
  </channel>
</rss>

