<?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: help easy in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/help-easy/m-p/5091633#M93378</link>
    <description>cd /dir/log&lt;BR /&gt;&amp;gt;log (* will zero out log but keep the file *)&lt;BR /&gt;touch log (* same as above *)&lt;BR /&gt;rm log (* deletes *)</description>
    <pubDate>Thu, 07 Feb 2008 23:14:50 GMT</pubDate>
    <dc:creator>Michael Steele_2</dc:creator>
    <dc:date>2008-02-07T23:14:50Z</dc:date>
    <item>
      <title>help easy</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-easy/m-p/5091632#M93377</link>
      <description>Hi &lt;BR /&gt;I have a script&lt;BR /&gt;echo "input:" 8b 8c 8d&lt;BR /&gt;read $B&lt;BR /&gt;for i in $B&lt;BR /&gt;## the command #&lt;BR /&gt;pixar -p $B &amp;gt;log&lt;BR /&gt;&lt;BR /&gt;the output : is invalid command&lt;BR /&gt;the option -p only accept one parameter&lt;BR /&gt;pixar -p 8b 8c 8d&lt;BR /&gt;&lt;BR /&gt;since do it&lt;BR /&gt;&lt;BR /&gt;and howto delete lines in log&lt;BR /&gt;&lt;BR /&gt;cat.log&lt;BR /&gt;&lt;BR /&gt;aaaaaaaa&lt;BR /&gt;      bb&lt;BR /&gt;      fd&lt;BR /&gt;      jg&lt;BR /&gt;9sf9 ffff&lt;BR /&gt;&lt;BR /&gt;a need deleted lines with space blank, line bb, fd jg&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Feb 2008 23:12:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-easy/m-p/5091632#M93377</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2008-02-07T23:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: help easy</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-easy/m-p/5091633#M93378</link>
      <description>cd /dir/log&lt;BR /&gt;&amp;gt;log (* will zero out log but keep the file *)&lt;BR /&gt;touch log (* same as above *)&lt;BR /&gt;rm log (* deletes *)</description>
      <pubDate>Thu, 07 Feb 2008 23:14:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-easy/m-p/5091633#M93378</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2008-02-07T23:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: help easy</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-easy/m-p/5091634#M93379</link>
      <description>the log format in post no is correct &lt;BR /&gt;attach the log correct.</description>
      <pubDate>Thu, 07 Feb 2008 23:44:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-easy/m-p/5091634#M93379</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2008-02-07T23:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: help easy</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-easy/m-p/5091635#M93380</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;If I understand correctly, you want to delete lines with leading whitespace (tabs and/or spaces).  One way is:&lt;BR /&gt;&lt;BR /&gt;# perl -ne 'print unless m{^\s+}' file&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 08 Feb 2008 01:35:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-easy/m-p/5091635#M93380</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-02-08T01:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: help easy</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-easy/m-p/5091636#M93381</link>
      <description>&lt;!--!*#--&gt;read $B&lt;BR /&gt;&lt;BR /&gt;This should be: read B&lt;BR /&gt;&lt;BR /&gt;for i in $B&lt;BR /&gt;   pixar -p $B &amp;gt;log&lt;BR /&gt;&lt;BR /&gt;Did you want to do pixar for every value you read in B?&lt;BR /&gt;&lt;BR /&gt;for i in $B; do&lt;BR /&gt;   pixar -p $i &amp;gt;log"&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Another solution to delete lines with leading spaces/tabs:&lt;BR /&gt;$ grep -v "^[     ]" log&lt;BR /&gt;&lt;BR /&gt;Where the [] contains a space then a tab.&lt;BR /&gt;Or you can do the following for all whitespace:&lt;BR /&gt;$ grep -v "^[[:space:]]" log</description>
      <pubDate>Fri, 08 Feb 2008 11:11:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-easy/m-p/5091636#M93381</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-02-08T11:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: help easy</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-easy/m-p/5091637#M93382</link>
      <description>Denis &lt;BR /&gt;&lt;BR /&gt;echo $B is : 8b 8c 8d&lt;BR /&gt;&lt;BR /&gt;but command pixar only accept one value&lt;BR /&gt;&lt;BR /&gt;the correct command is &lt;BR /&gt;pixar -p 8b&lt;BR /&gt;.....&lt;BR /&gt;....&lt;BR /&gt;&lt;BR /&gt;pixar -p 8b 8c d&lt;BR /&gt;invalid command&lt;BR /&gt;&lt;BR /&gt;I need in B input value 8b 8c 8d&lt;BR /&gt;and the command pixar -p execute one value only&lt;BR /&gt;&lt;BR /&gt;I cant send 8b 8c 8d to a file &lt;BR /&gt;&lt;BR /&gt;so:&lt;BR /&gt;for i in `cat B.input`&lt;BR /&gt;do&lt;BR /&gt;...&lt;BR /&gt;pixar -p $i&lt;BR /&gt;&lt;BR /&gt;I no want to create files&lt;BR /&gt;&lt;BR /&gt;understant? &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Feb 2008 17:26:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-easy/m-p/5091637#M93382</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2008-02-08T17:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: help easy</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-easy/m-p/5091638#M93383</link>
      <description>sorry , I solved problem in the for ...do&lt;BR /&gt;&lt;BR /&gt;thansk</description>
      <pubDate>Fri, 08 Feb 2008 18:25:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-easy/m-p/5091638#M93383</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2008-02-08T18:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: help easy</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-easy/m-p/5091639#M93384</link>
      <description>sorry , I solved problem in the for ...do&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Fri, 08 Feb 2008 18:25:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-easy/m-p/5091639#M93384</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2008-02-08T18:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: help easy</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-easy/m-p/5091640#M93385</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;read Dennis' solution again to see, that there is no need for a temporary file:&lt;BR /&gt;B='8a 8b 8c'&lt;BR /&gt;for i in $B&lt;BR /&gt;do print val=$i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;results in an output of&lt;BR /&gt;val=8a&lt;BR /&gt;val=8b&lt;BR /&gt;val=8c&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Fri, 08 Feb 2008 18:29:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-easy/m-p/5091640#M93385</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2008-02-08T18:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: help easy</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-easy/m-p/5091641#M93386</link>
      <description>Dennis I submit points 8 &lt;BR /&gt;, I do not what post&lt;BR /&gt;You can try other post &lt;BR /&gt;</description>
      <pubDate>Fri, 08 Feb 2008 18:33:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-easy/m-p/5091641#M93386</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2008-02-08T18:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: help easy</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-easy/m-p/5091642#M93387</link>
      <description>&lt;!--!*#--&gt;Hi (again) Jairo:&lt;BR /&gt;&lt;BR /&gt;In my fisrt post I answered your second question of how to delete the lines in your log.&lt;BR /&gt;&lt;BR /&gt;Now, if I understand the first part of your question, you could do:&lt;BR /&gt;&lt;BR /&gt;# cat .mysh&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;B="8b 8c 8d"&lt;BR /&gt;echo "B is: ${B}"&lt;BR /&gt;for X in $( echo ${B}|tr -s " " "\012" )&lt;BR /&gt;do&lt;BR /&gt;    echo "pixar -p ${X}"&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;# ./mysh&lt;BR /&gt;B is: 8b 8c 8d&lt;BR /&gt;pixar -p 8b&lt;BR /&gt;pixar -p 8c&lt;BR /&gt;pixar -p 8d&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Feb 2008 18:51:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-easy/m-p/5091642#M93387</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-02-08T18:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: help easy</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-easy/m-p/5091643#M93388</link>
      <description>&amp;gt;but command pixar only accept one value&lt;BR /&gt;&amp;gt;the correct command is: pixar -p 8b&lt;BR /&gt;&lt;BR /&gt;My for loop did that.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;You can try other post&lt;BR /&gt;&lt;BR /&gt;Here you go.  :-)&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Feb 2008 20:42:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-easy/m-p/5091643#M93388</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-02-08T20:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: help easy</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-easy/m-p/5091644#M93389</link>
      <description>a</description>
      <pubDate>Mon, 11 Feb 2008 19:54:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-easy/m-p/5091644#M93389</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2008-02-11T19:54:35Z</dc:date>
    </item>
  </channel>
</rss>

