<?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: About writing the script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/about-writing-the-script/m-p/2942914#M720045</link>
    <description>what purpose does the pipe to more in the command substituion serve?&lt;BR /&gt;&lt;BR /&gt;DUMP=$(w)&lt;BR /&gt;&lt;BR /&gt;should suffice&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 03 Apr 2003 11:29:02 GMT</pubDate>
    <dc:creator>Ralph Grothe</dc:creator>
    <dc:date>2003-04-03T11:29:02Z</dc:date>
    <item>
      <title>About writing the script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-writing-the-script/m-p/2942909#M720040</link>
      <description>The is a simple question about shell script, please suggest to solve it. thx&lt;BR /&gt;&lt;BR /&gt;i wrote a scrpt :&lt;BR /&gt;# process = w |more&lt;BR /&gt;#echo $process&lt;BR /&gt;the echo result is &lt;BR /&gt;userid pts/ ip time process userid pts/ ip time process userid pts/ ip time process userid pts/ ip time process userid pts/ ip time process userid pts/ ip time process ......&lt;BR /&gt;&lt;BR /&gt;how to make the result as the below tidy format ? thx.&lt;BR /&gt;userid pts/ ip time process&lt;BR /&gt;userid pts/ ip time process&lt;BR /&gt;userid pts/ ip time process&lt;BR /&gt;userid pts/ ip time process</description>
      <pubDate>Thu, 03 Apr 2003 09:38:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-writing-the-script/m-p/2942909#M720040</guid>
      <dc:creator>juno2</dc:creator>
      <dc:date>2003-04-03T09:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: About writing the script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-writing-the-script/m-p/2942910#M720041</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;what you are doing is assigning a set of values to variable by this command. &lt;BR /&gt;&lt;BR /&gt;w | more generates some output which contains a lot of text and you are assigning this to the variable process. and when you print process, these values get printed.&lt;BR /&gt;&lt;BR /&gt;what are u trying. if you could give some more info, i will be able to help.&lt;BR /&gt;&lt;BR /&gt;correct me if i am wrong.&lt;BR /&gt;hth&lt;BR /&gt;-balaji&lt;BR /&gt;&lt;BR /&gt;(and juno, you have never assigned points to anybody. pls login and assign points to all your replies. )</description>
      <pubDate>Thu, 03 Apr 2003 09:47:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-writing-the-script/m-p/2942910#M720041</guid>
      <dc:creator>Balaji N</dc:creator>
      <dc:date>2003-04-03T09:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: About writing the script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-writing-the-script/m-p/2942911#M720042</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Since the number of parameters in a line is variable you will not do it.&lt;BR /&gt;&lt;BR /&gt;try something silly like&lt;BR /&gt;&lt;BR /&gt;w|tail -n +3|cut -c1-29,50-256&lt;BR /&gt;&lt;BR /&gt;Steve Steel</description>
      <pubDate>Thu, 03 Apr 2003 09:52:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-writing-the-script/m-p/2942911#M720042</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2003-04-03T09:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: About writing the script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-writing-the-script/m-p/2942912#M720043</link>
      <description>Try:&lt;BR /&gt;# process=$(w|more)&lt;BR /&gt;# echo "$process"&lt;BR /&gt;&lt;BR /&gt;Best regards...&lt;BR /&gt; Dietmar.&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Apr 2003 09:53:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-writing-the-script/m-p/2942912#M720043</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2003-04-03T09:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: About writing the script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-writing-the-script/m-p/2942913#M720044</link>
      <description>thx  Dietmar Konermann , you method is ok.</description>
      <pubDate>Thu, 03 Apr 2003 09:59:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-writing-the-script/m-p/2942913#M720044</guid>
      <dc:creator>juno2</dc:creator>
      <dc:date>2003-04-03T09:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: About writing the script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-writing-the-script/m-p/2942914#M720045</link>
      <description>what purpose does the pipe to more in the command substituion serve?&lt;BR /&gt;&lt;BR /&gt;DUMP=$(w)&lt;BR /&gt;&lt;BR /&gt;should suffice&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Apr 2003 11:29:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-writing-the-script/m-p/2942914#M720045</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2003-04-03T11:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: About writing the script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-writing-the-script/m-p/2942915#M720046</link>
      <description>process=$(w| awk '{print $1,$2,$3,$4,$5}')&lt;BR /&gt;echo $process</description>
      <pubDate>Thu, 03 Apr 2003 14:08:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-writing-the-script/m-p/2942915#M720046</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-04-03T14:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: About writing the script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-writing-the-script/m-p/2942916#M720047</link>
      <description>w | tail -n +3 |awk '{print $1" "$2" "$3" "$NF}' &amp;gt; ~/dummy&lt;BR /&gt;&lt;BR /&gt;cat ~/dummy |while read i j k l&lt;BR /&gt;do&lt;BR /&gt;echo "$i  $j  $k  $l" &lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;rm ~/dummy&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Apr 2003 23:41:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-writing-the-script/m-p/2942916#M720047</guid>
      <dc:creator>Wilfred Chau_1</dc:creator>
      <dc:date>2003-04-03T23:41:20Z</dc:date>
    </item>
  </channel>
</rss>

