[plug] Manipulating a text file

Earnshaw, Mike earnshawm at wa.switch.aust.com
Mon Feb 5 17:22:21 WST 2001


Pluggers,

I am having trouble extracting the first columns of our passwd file into
another file ...

mike:x:500:500 ....

I have about 100 users and I just want the names column. I have played
around a bit with cut and awk but the correct syntax is eluding me. I
think I may need to get the 'nutshell' book ...

I require this info to feed in htpasswd to generate a list of user/pass
pairs for squid authentication.

Any help really appreciated.

Thanks

------------------------------------------------------------------------
-----
Mike Earnshaw      | Tech support is a fine art      | e-mail in header
 Computer Systems  | which once mastered, virtually  | Tel : +61 8 9256
0023
  Support          | ensures loss of sanity.         | Fax : +61 8 9256
1199
------------------------------------------------------------------------
-----
   ,-._|\    Union Switch & signal
  /      \   24 Bannick Court
  *_.--._/   Canning Vale, WA 6155, Western Australia
        v 
------------------------------------------------------------------------
-----



More information about the plug mailing list