Find the answer to your Linux question:
Results 1 to 3 of 3
Write a Bash shell script that when executed gives you the actual count of regular and special users on the system. #! /bin/bash cat /etc/passwd | cut -f3 -d: plz ...
  1. #1
    Just Joined!
    Join Date
    Apr 2010
    Posts
    1

    Lightbulb Plz help in script

    Write a Bash shell script that when executed gives you the actual count of regular and special users on the system.


    #! /bin/bash
    cat /etc/passwd | cut -f3 -d:


    plz help

  2. #2
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    623
    Define "regular", "special", and "on".

  3. #3
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    Unfortunately, this sounds a lot like a homework question, which are not allowed in this forum. Therefore, I will close this thread.

    If you have a more specific question about writing this script (for instance, "How does the cut command know what the different fields are?"), we can help. But we will not do homework for you.
    DISTRO=Arch
    Registered Linux User #388732

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...