<?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: wc in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/wc/m-p/2986798#M718375</link>
    <description>wc -l filename.txt | awk '{print $1}'&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Piyush</description>
    <pubDate>Mon, 02 Jun 2003 19:06:30 GMT</pubDate>
    <dc:creator>PIYUSH D. PATEL</dc:creator>
    <dc:date>2003-06-02T19:06:30Z</dc:date>
    <item>
      <title>wc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wc/m-p/2986797#M718374</link>
      <description>wc -l filename.txt&lt;BR /&gt;&lt;BR /&gt;gives me ,&lt;BR /&gt;8 filename.txt&lt;BR /&gt;&lt;BR /&gt;i want it to return only 8.&lt;BR /&gt;i want to check no of lines of one file with other one.&lt;BR /&gt;&lt;BR /&gt;like , &lt;BR /&gt;If wc -l f1.txt &amp;gt; wc -l f2.txt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Jun 2003 19:02:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wc/m-p/2986797#M718374</guid>
      <dc:creator>Prabhu_7</dc:creator>
      <dc:date>2003-06-02T19:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: wc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wc/m-p/2986798#M718375</link>
      <description>wc -l filename.txt | awk '{print $1}'&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Piyush</description>
      <pubDate>Mon, 02 Jun 2003 19:06:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wc/m-p/2986798#M718375</guid>
      <dc:creator>PIYUSH D. PATEL</dc:creator>
      <dc:date>2003-06-02T19:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: wc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wc/m-p/2986799#M718376</link>
      <description>try this:&lt;BR /&gt;&lt;BR /&gt;if [ `cat f1.txt|wc -l` -gt `cat f2.txt|wc -l` ]; then&lt;BR /&gt;&lt;BR /&gt;do stuff for greater than condition here&lt;BR /&gt;&lt;BR /&gt;else&lt;BR /&gt;&lt;BR /&gt;do stuff for not greater than condition here&lt;BR /&gt;&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Note that I used the grave (backquotes) in the if statement.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;mark</description>
      <pubDate>Mon, 02 Jun 2003 19:06:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wc/m-p/2986799#M718376</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2003-06-02T19:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: wc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wc/m-p/2986800#M718377</link>
      <description>Hi Prabhu,&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;&lt;BR /&gt;wc -l filename.txt | awk '{ print $1}'&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Mon, 02 Jun 2003 19:08:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wc/m-p/2986800#M718377</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-06-02T19:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: wc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wc/m-p/2986801#M718378</link>
      <description>Try this:&lt;BR /&gt;&lt;BR /&gt;# wc -l vg00.map |awk '{print$1}'</description>
      <pubDate>Mon, 02 Jun 2003 19:08:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wc/m-p/2986801#M718378</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2003-06-02T19:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: wc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wc/m-p/2986802#M718379</link>
      <description>wc -l f1.txt | awk '{print $1}' &amp;gt;  wc -l f2.txt | awk '{print $1}' &lt;BR /&gt;&lt;BR /&gt;Sorry for the second post....&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Piyush</description>
      <pubDate>Mon, 02 Jun 2003 19:09:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wc/m-p/2986802#M718379</guid>
      <dc:creator>PIYUSH D. PATEL</dc:creator>
      <dc:date>2003-06-02T19:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: wc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wc/m-p/2986803#M718380</link>
      <description>Hi!!&lt;BR /&gt;&lt;BR /&gt;How about:&lt;BR /&gt;&lt;BR /&gt;cat filename.txt | wc -l&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;DR</description>
      <pubDate>Mon, 02 Jun 2003 19:09:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wc/m-p/2986803#M718380</guid>
      <dc:creator>Dario_1</dc:creator>
      <dc:date>2003-06-02T19:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: wc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wc/m-p/2986804#M718381</link>
      <description>Oops .. replace vg00.map with your file_name. I just copied the command which I tried =))</description>
      <pubDate>Mon, 02 Jun 2003 19:10:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wc/m-p/2986804#M718381</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2003-06-02T19:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: wc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wc/m-p/2986805#M718382</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You could do:&lt;BR /&gt;&lt;BR /&gt;# X=`wc -l f1.txt|cut -d" " -f1`&lt;BR /&gt;&lt;BR /&gt;# Y=`wc -l f2.txt|cut -d" " -f1`&lt;BR /&gt;&lt;BR /&gt;# if [ "${X}" -gt "${Y}" ]; then&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 02 Jun 2003 19:10:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wc/m-p/2986805#M718382</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-06-02T19:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: wc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wc/m-p/2986806#M718383</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;Of course, if you prefer:&lt;BR /&gt;&lt;BR /&gt;# [ `wc -l f1.txt|cut -d" " -f1` -gt `wc -l f2.txt|cut -d" " -f1` ] &amp;amp;&amp;amp; echo "f1 has more lines than f2"&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 02 Jun 2003 19:33:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wc/m-p/2986806#M718383</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-06-02T19:33:15Z</dc:date>
    </item>
  </channel>
</rss>

