<?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: grep problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/5185553#M683014</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;ll|grep stdlist&lt;BR /&gt;Correct me, Is this you want:&lt;BR /&gt;ll |grep stdlist |grep -v "^l"&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;</description>
    <pubDate>Mon, 06 Jul 2009 21:44:01 GMT</pubDate>
    <dc:creator>Nido</dc:creator>
    <dc:date>2009-07-06T21:44:01Z</dc:date>
    <item>
      <title>grep problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/5185552#M683013</link>
      <description>When I grep stdlist with ls -al i got a huge output because I think there are so many logs file linked to some location and which contains name stdlist but just I want is stdlist in the filename in the local server not in the link&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;here is what i have got and what i want if anyone can help me with this.&lt;BR /&gt;&lt;BR /&gt;i just want all the files which has stdlist name in the current server and i dont care where they have linked to &lt;BR /&gt;like i want this &lt;BR /&gt;stdlist -&amp;gt; /tlglogs/twsprd82/stdlist&lt;BR /&gt; but i dont want this&lt;BR /&gt;BLBESLBENREXT_B04022008010078_IND_20080207_231710.log -&amp;gt; /usr/local/TWS/stdlist&lt;BR /&gt;&lt;BR /&gt;you can see stdlist is in the link so its also giving me in the output but i dont want it&lt;BR /&gt;&lt;BR /&gt;this is what i have got&lt;BR /&gt;ll|grep stdlist&lt;BR /&gt;lrwxrwxr-x   1 twsprd82   oper            54 Feb  7  2008 BLBEADJEXT_B04022008010078_IND_20080207_231710.log -&amp;gt; /usr/local/TWS/TWSREJ82/stdlist/2008.02.07/O10899.2317&lt;BR /&gt;lrwxrwxr-x   1 twsprd82   oper            54 Feb  7  2008 BLBEBILLEXT_B04022008010078_IND_20080207_231710.log -&amp;gt; /usr/local/TWS/TWSREJ82/stdlist/2008.02.07/O10933.2317&lt;BR /&gt;lrwxrwxr-x   1 twsprd82   oper            54 Feb  7  2008 BLBEBLMSGEXT_B04022008010078_IND_20080207_231710.log -&amp;gt; /usr/local/TWS/TWSREJ82/stdlist/2008.02.07/O10946.2317&lt;BR /&gt;lrwxrwxr-x   1 twsprd82   oper            54 Feb  7  2008 BLBEBLSTEXT_B04022008010078_IND_20080207_231731.log -&amp;gt; /usr/local/TWS/TWSREJ82/stdlist/2008.02.07/O13927.2317&lt;BR /&gt;lrwxrwxr-x   1 twsprd82   oper            54 Feb  7  2008 BLBEBSUBEXT_B04022008010078_IND_20080207_231711.log -&amp;gt; /usr/local/TWS/TWSREJ82/stdlist/2008.02.07/O10965.2317&lt;BR /&gt;lrwxrwxr-x   1 twsprd82   oper            54 Feb  7  2008 BLBECANCTNEXT_B04022008010078_IND_20080207_231710.log -&amp;gt; /usr/local/TWS/TWSREJ82/stdlist/2008.02.07/O10858.2317&lt;BR /&gt;lrwxrwxr-x   1 twsprd82   oper            54 Feb  7  2008 BLBECAUEXT_B04022008010078_IND_20080207_231711.log -&amp;gt; /usr/local/TWS/TWSREJ82/stdlist/2008.02.07/O10983.2317&lt;BR /&gt;lrwxrwxr-x   1 twsprd82   oper            54 Feb  7  2008 BLBECHGEXT_B04022008010078_IND_20080207_231710.log -&amp;gt; /usr/local/TWS/TWSREJ82/stdlist/2008.02.07/O10915.2317&lt;BR /&gt;lrwxrwxr-x   1 twsprd82   oper            54 Feb  7  2008 BLBECUSGEXT_B04022008010078_IND_20080207_231711.log -&amp;gt; /usr/local/TWS/TWSREJ82/stdlist/2008.02.07/O11002.2317&lt;BR /&gt;lrwxrwxr-x   1 twsprd82   oper            54 Feb  7  2008 BLBEEQPEXT_B04022008010078_IND_20080207_231711.log -&amp;gt; /usr/local/TWS/TWSREJ82/stdlist/2008.02.07/O11056.2317&lt;BR /&gt;lrwxrwxr-x   1 twsprd82   oper            54 Feb  7  2008 BLBEINCFTREXT_B04022008010078_IND_20080207_231711.log -&amp;gt; /usr/local/TWS/TWSREJ82/stdlist/2008.02.07/O11038.2317&lt;BR /&gt;lrwxrwxr-x   1 twsprd82   oper            54 Feb  7  2008 BLBEIPEXT_B04022008010078_IND_20080207_231711.log -&amp;gt; /usr/local/TWS/TWSREJ82/stdlist/2008.02.07/O11137.2317&lt;BR /&gt;lrwxrwxr-x   1 twsprd82   oper            54 Feb  7  2008 BLBEIPUSGEXT_B04022008010078_IND_20080207_231711.log -&amp;gt; /usr/local/TWS/TWSREJ82/stdlist/2008.02.07/O11095.2317&lt;BR /&gt;lrwxrwxr-x   1 twsprd82   oper            54 Feb  7  2008 BLBEMPEXT_B04022008010078_IND_20080207_231710.log -&amp;gt; /usr/local/TWS/TWSREJ82/stdlist/2008.02.07/O10878.2317&lt;BR /&gt;lrwxrwxr-x   1 twsprd82   oper            54 Feb  7  2008 BLBEPIEXT_B04022008010078_IND_20080207_231710.log -&amp;gt; /usr/local/TWS/TWSREJ82/stdlist/2008.02.07/O10884.2317&lt;BR /&gt;lrwxrwxr-x   1 twsprd82   oper            54 Feb  7  2008 BLBEPYMEXT_B04022008010078_IND_20080207_231711.log -&amp;gt; /usr/local/TWS/TWSREJ82/stdlist/2008.02.07/O11022.2317&lt;BR /&gt;lrwxrwxr-x   1 twsprd82   oper            54 Feb  7  2008 BLBEREEXT_B04022008010078_IND_20080207_231710.log -&amp;gt; /usr/local/TWS/TWSREJ82/stdlist/2008.02.07/O10867.2317&lt;BR /&gt;lrwxrwxr-x   1 twsprd82   oper            54 Feb  7  2008 BLBEROLLEXT_B04022008010078_IND_20080207_231711.log -&amp;gt; /usr/local/TWS/TWSREJ82/stdlist/2008.02.07/O11176.2317&lt;BR /&gt;lrwxrwxr-x   1 twsprd82   oper            54 Feb  7  2008 BLBESHRGRPEXT_B04022008010078_IND_20080207_231711.log -&amp;gt; /usr/local/TWS/TWSREJ82/stdlist/2008.02.07/O11251.2317&lt;BR /&gt;lrwxrwxr-x   1 twsprd82   oper            54 Feb  7  2008 BLBESITINVEXT_B04022008010078_IND_20080207_231711.log -&amp;gt; /usr/local/TWS/TWSREJ82/stdlist/2008.02.07/O11084.2317&lt;BR /&gt;lrwxrwxr-x   1 twsprd82   oper            54 Feb  7  2008 BLBESLBENREXT_B04022008010078_IND_20080207_231710.log -&amp;gt; /usr/local/TWS/TWSREJ82/stdlist/2008.02.07/O10853.2317&lt;BR /&gt;lrwxrwxr-x   1 twsprd82   oper            25 Apr 10  2007 stdlist -&amp;gt; /tlglogs/twsprd82/stdlist&lt;BR /&gt;&lt;BR /&gt;can anybody help me how can i just grep the first part where stdlist is there not in the link part&lt;BR /&gt;&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Mon, 06 Jul 2009 21:34:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/5185552#M683013</guid>
      <dc:creator>pareshan</dc:creator>
      <dc:date>2009-07-06T21:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: grep problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/5185553#M683014</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;ll|grep stdlist&lt;BR /&gt;Correct me, Is this you want:&lt;BR /&gt;ll |grep stdlist |grep -v "^l"&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Jul 2009 21:44:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/5185553#M683014</guid>
      <dc:creator>Nido</dc:creator>
      <dc:date>2009-07-06T21:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: grep problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/5185554#M683015</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Instead of using 'grep' you could use 'awk' to match only the firat field:&lt;BR /&gt;&lt;BR /&gt;# ls -al|awk '$9~/stdlist/ {print}'&lt;BR /&gt;&lt;BR /&gt;...matches the nineth field and if it matches "stdlist" the whole line is printed.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Jul 2009 23:18:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/5185554#M683015</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-07-06T23:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: grep problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/5185555#M683016</link>
      <description>Nido, thats not giving me any output I dont know why, &lt;BR /&gt;ll|grep stdlist|grep -v "^"&lt;BR /&gt;it prints nothing&lt;BR /&gt;&lt;BR /&gt;James, &lt;BR /&gt;&lt;BR /&gt;that works when I try that in the local server but when I do in remote server got some error&lt;BR /&gt;&lt;BR /&gt;awk: Quitting&lt;BR /&gt; The source line is 1.&lt;BR /&gt;uid=388(gc1488) gid=20(users)&lt;BR /&gt; syntax error The source line is 1.&lt;BR /&gt; The error context is&lt;BR /&gt;                 &amp;gt;&amp;gt;&amp;gt; ~ &amp;lt;&amp;lt;&amp;lt; &lt;BR /&gt;</description>
      <pubDate>Tue, 07 Jul 2009 13:54:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/5185555#M683016</guid>
      <dc:creator>pareshan</dc:creator>
      <dc:date>2009-07-07T13:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: grep problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/5185556#M683017</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;Nido, thats not giving me any output I dont know why, &lt;BR /&gt;ll|grep stdlist|grep -v "^"&lt;BR /&gt;it prints nothing &amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;You have missed the "l" after "^". Correct syntax is,&lt;BR /&gt;&lt;BR /&gt;# ll|grep stdlist|grep -v ^l</description>
      <pubDate>Tue, 07 Jul 2009 14:04:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/5185556#M683017</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-07-07T14:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: grep problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/5185557#M683018</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;Try to use grep -i option.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Sunny</description>
      <pubDate>Tue, 07 Jul 2009 14:04:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/5185557#M683018</guid>
      <dc:creator>Sunny123_1</dc:creator>
      <dc:date>2009-07-07T14:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: grep problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/5185558#M683019</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; James, that works when I try that in the local server but when I do in remote server got some error&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;&lt;BR /&gt;# ssh overthere -n ls -al|awk '$9~/stdlist/ {print}'&lt;BR /&gt;&lt;BR /&gt;...without any additional encapsulating quotes.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Jul 2009 14:14:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/5185558#M683019</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-07-07T14:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: grep problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/5185559#M683020</link>
      <description>james, &lt;BR /&gt;yeah that did work&lt;BR /&gt;&lt;BR /&gt;Thanks alot&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Jul 2009 15:36:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/5185559#M683020</guid>
      <dc:creator>pareshan</dc:creator>
      <dc:date>2009-07-07T15:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: grep problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/5185560#M683021</link>
      <description>problem solved with the help of james</description>
      <pubDate>Tue, 07 Jul 2009 15:36:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/5185560#M683021</guid>
      <dc:creator>pareshan</dc:creator>
      <dc:date>2009-07-07T15:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: grep problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/5185561#M683022</link>
      <description>&amp;gt;can I just grep the first part where stdlist is there not in the link part&lt;BR /&gt;&lt;BR /&gt;Simply use a better regexp:&lt;BR /&gt;ll -a | grep "stdlist.*-&amp;gt;"&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Jul 2009 15:43:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/5185561#M683022</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-07-07T15:43:40Z</dc:date>
    </item>
  </channel>
</rss>

