Results 1 to 2 of 2

Thread: New to Unix

  1. #1
    Join Date
    Sep 2003
    Posts
    4

    New to Unix

    Hey hows it going.. Iam new to Unix and Iam working on a Solaris system. I need to take the etc/passwd file and seperate the contents by the colons and make them into colums, so it looks something like this.. Please give me some help or advice.. Thanks!!

    Before Example:

    Donhoke:x:4454:44on Hooke:/var/adm:


    After Example:

    sbachman 1003 14 Steve Bachman /bin/ksh
    dfk 1138 512 Donh Kki /bin/ksh


    The user names start in column 0.
    The user ids end in column 24.
    The group ids end in column 34
    The real names start in column 40
    The shell starts in column 64

  2. #2
    Join Date
    Aug 2001
    Location
    UK
    Posts
    4,650

    Re: New to Unix

    You shoudl post this in Unix Shell Scripts board

    Sathyaram

    Originally posted by ffresh12
    Hey hows it going.. Iam new to Unix and Iam working on a Solaris system. I need to take the etc/passwd file and seperate the contents by the colons and make them into colums, so it looks something like this.. Please give me some help or advice.. Thanks!!

    Before Example:

    Donhoke:x:4454:44on Hooke:/var/adm:


    After Example:

    sbachman 1003 14 Steve Bachman /bin/ksh
    dfk 1138 512 Donh Kki /bin/ksh


    The user names start in column 0.
    The user ids end in column 24.
    The group ids end in column 34
    The real names start in column 40
    The shell starts in column 64
    Visit the new-look IDUG Website , register to gain access to the excellent content.

Posting Permissions

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