<?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: Placing text before command output in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/placing-text-before-command-output/m-p/2558681#M917981</link>
    <description>Thanks for all the prompt replies.  It is really appreciated</description>
    <pubDate>Mon, 30 Jul 2001 14:18:17 GMT</pubDate>
    <dc:creator>Jeffrey S. Bromley</dc:creator>
    <dc:date>2001-07-30T14:18:17Z</dc:date>
    <item>
      <title>Placing text before command output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/placing-text-before-command-output/m-p/2558677#M917977</link>
      <description>Does anyone know how to place text before the output of a command?  Basically, what I am trying to do is run a 'bdf', and then format the output like:&lt;BR /&gt;&lt;BR /&gt;Server Name: /dev/vg00/lvol1 kbytes used avail</description>
      <pubDate>Mon, 30 Jul 2001 13:58:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/placing-text-before-command-output/m-p/2558677#M917977</guid>
      <dc:creator>Jeffrey S. Bromley</dc:creator>
      <dc:date>2001-07-30T13:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Placing text before command output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/placing-text-before-command-output/m-p/2558678#M917978</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;bdf | while read line&lt;BR /&gt;do&lt;BR /&gt;echo "`hostname` : $line"&lt;BR /&gt;done</description>
      <pubDate>Mon, 30 Jul 2001 14:04:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/placing-text-before-command-output/m-p/2558678#M917978</guid>
      <dc:creator>Mark van Hassel</dc:creator>
      <dc:date>2001-07-30T14:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Placing text before command output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/placing-text-before-command-output/m-p/2558679#M917979</link>
      <description>sed probabily would work the best&lt;BR /&gt;&lt;BR /&gt;bdf | sed -e 's/^/server:/' &amp;gt;resultfile.txt</description>
      <pubDate>Mon, 30 Jul 2001 14:04:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/placing-text-before-command-output/m-p/2558679#M917979</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2001-07-30T14:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Placing text before command output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/placing-text-before-command-output/m-p/2558680#M917980</link>
      <description>Hi Jeffrey:&lt;BR /&gt;&lt;BR /&gt;Depending on what you want to do the number od methods is legion.&lt;BR /&gt;&lt;BR /&gt;1) echo "Server Name: \c"&lt;BR /&gt;   bdf&lt;BR /&gt;&lt;BR /&gt;2) HNAME=`hostname`&lt;BR /&gt;   bdf | awk -v host=${HNAME} '{print "Server Name: ",host," ",$0}'&lt;BR /&gt;&lt;BR /&gt;3) You could use paste to combine two files&lt;BR /&gt;&lt;BR /&gt;Just a few, Clay</description>
      <pubDate>Mon, 30 Jul 2001 14:11:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/placing-text-before-command-output/m-p/2558680#M917980</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-07-30T14:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Placing text before command output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/placing-text-before-command-output/m-p/2558681#M917981</link>
      <description>Thanks for all the prompt replies.  It is really appreciated</description>
      <pubDate>Mon, 30 Jul 2001 14:18:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/placing-text-before-command-output/m-p/2558681#M917981</guid>
      <dc:creator>Jeffrey S. Bromley</dc:creator>
      <dc:date>2001-07-30T14:18:17Z</dc:date>
    </item>
  </channel>
</rss>

