<?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: USER LOGIN NAME SHELL SCRIPT in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-name-shell-script/m-p/2446714#M769587</link>
    <description>Andrew:&lt;BR /&gt;&lt;BR /&gt;If, for instance, you want this based on the active user count, try this:&lt;BR /&gt;&lt;BR /&gt;# who|awk '{if (length($1)&amp;gt;=4) LSS4++; else GTR4++}; END {print "LSS="&amp;gt;LSS,"GTR="GTR}'&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Wed, 20 Sep 2000 15:43:15 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2000-09-20T15:43:15Z</dc:date>
    <item>
      <title>USER LOGIN NAME SHELL SCRIPT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-name-shell-script/m-p/2446712#M769585</link>
      <description>I know this is an easy one for someone.&lt;BR /&gt;&lt;BR /&gt;I am trying to write a shell script to find out, for example, how many users have a login name with less than 4 characters and then those that have 4 or more characters.&lt;BR /&gt;Thanks for any/all help.&lt;BR /&gt;Andy</description>
      <pubDate>Wed, 20 Sep 2000 14:54:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-name-shell-script/m-p/2446712#M769585</guid>
      <dc:creator>Andrew Luis Arruza</dc:creator>
      <dc:date>2000-09-20T14:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: USER LOGIN NAME SHELL SCRIPT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-name-shell-script/m-p/2446713#M769586</link>
      <description>here you are - an awk script to do what you want ...&lt;BR /&gt;&lt;BR /&gt;create a file from the lines below and call it as shown&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/awk&lt;BR /&gt;#&lt;BR /&gt;# Awk file to count number of users in /etc/passwd that have&lt;BR /&gt;# less than 4 char user names and those with 4 or more&lt;BR /&gt;#&lt;BR /&gt;#  invoke with awk -f countusers /etc/passwd&lt;BR /&gt; &lt;BR /&gt;BEGIN { FS = ":" ; lessthan = 0 ; morethan = 0 }&lt;BR /&gt;{&lt;BR /&gt;if  ( length ($1) &amp;lt; 4 ) &lt;BR /&gt;lessthan++ &lt;BR /&gt;else&lt;BR /&gt;morethan++  &lt;BR /&gt;}&lt;BR /&gt;END { print "number of users with less than 4 characters " lessthan " \n";&lt;BR /&gt;print "number of users with more 4 or more chars " morethan ; }&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Sep 2000 15:27:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-name-shell-script/m-p/2446713#M769586</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-09-20T15:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: USER LOGIN NAME SHELL SCRIPT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-name-shell-script/m-p/2446714#M769587</link>
      <description>Andrew:&lt;BR /&gt;&lt;BR /&gt;If, for instance, you want this based on the active user count, try this:&lt;BR /&gt;&lt;BR /&gt;# who|awk '{if (length($1)&amp;gt;=4) LSS4++; else GTR4++}; END {print "LSS="&amp;gt;LSS,"GTR="GTR}'&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 20 Sep 2000 15:43:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-name-shell-script/m-p/2446714#M769587</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-09-20T15:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: USER LOGIN NAME SHELL SCRIPT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-name-shell-script/m-p/2446715#M769588</link>
      <description>Andrew:&lt;BR /&gt;&lt;BR /&gt;Oops:&lt;BR /&gt;&lt;BR /&gt;# who|awk '{if (length($1)&amp;gt;=4) LSS4++; else GTR4++}; END {print "LSS="LSS4,"GTR="GTR4}' &lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Sep 2000 15:46:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-name-shell-script/m-p/2446715#M769588</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-09-20T15:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: USER LOGIN NAME SHELL SCRIPT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-name-shell-script/m-p/2446716#M769589</link>
      <description>To correct for NIS wildcards:&lt;BR /&gt;&lt;BR /&gt;grep -v [-+] /etc/passwd| awk -F: '{if (length($1)&amp;gt;=4) LSS4++; else GTR4++};END{&lt;BR /&gt;print "LSS="LSS4,"GTR="GTR4}'</description>
      <pubDate>Wed, 20 Sep 2000 15:53:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-name-shell-script/m-p/2446716#M769589</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2000-09-20T15:53:03Z</dc:date>
    </item>
  </channel>
</rss>

