home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / perl / 5644 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  850 b 

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!usc!hacgate!tony
  2. From: tony@hacgate.SCG.HAC.COM (Tony Reeves)
  3. Newsgroups: comp.lang.perl
  4. Subject: how to get passwd
  5. Message-ID: <23093@hacgate.SCG.HAC.COM>
  6. Date: 31 Aug 92 23:39:53 GMT
  7. Reply-To: tony@hacgate.UUCP (Tony Reeves)
  8. Distribution: usa
  9. Organization: Hughes Aircraft Co., El Segundo, CA
  10. Lines: 11
  11.  
  12. I'm new to perl, so I'm sorry if this is a dumb question...
  13.  
  14. I want to read the last line of /etc/passwd and grep out the uid number. 
  15. I can't seem to do this. How can I do this easy? I tryed open, seek and split.
  16. But it does not seem to work the way I read it in the man page. Can a perl
  17. expert help me?
  18.  
  19. -- 
  20. Why did the Roman Empire Collapse? What is latin for Office Automation?
  21. ---- The opitions expressed here are mine and have nothing to do with Hughes
  22. Aircraft Co. -- So there! tony@hacgate.hac.com
  23.