Anyone know how to do linux?

Discussion in 'Services' started by hippo_dance, Jan 16, 2012.

  1. #1
    as the above.....
    need help.
    will pay
     
    hippo_dance, Jan 16, 2012 IP
  2. WiseVIN

    WiseVIN Peon

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    You are not clear with your post. can you please provide some more information about what you want to do?
     
    WiseVIN, Jan 16, 2012 IP
  3. hippo_dance

    hippo_dance Active Member

    Messages:
    1,007
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    73
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    1. Copy the completed adduser script from the chp6/lab/solutions directory, and then modify the script to do the following.
    a. Take exactly one command-line argument, which is assumed to be the new user’s name. Output a USAGE message and, exit the script immediately when the script is executed with more or less than one command-line argument.
    b. Either assign the value of $1 to the name variable or change the grep command to search for $1.
    c. If the user name already exists in the mypasswd file, print a message, print the actual mypasswd entry for the user, and then exit the script.
    d. In the previous lab, you used sed to create a file of UID numbers. Numerically sort the contents of this file, and store the output into currentuid4 file.
    e. The last line in currentuid4 has the maximum UID number currently in use. Increment that number by 1 for the new user.
    f. Print the new user name and UID.

    anyone could help me with this using Red Hat
     
    hippo_dance, Jan 16, 2012 IP