On Fri, Jan 18, 2002 at 02:51:39PM +0000, Gary Stainburn wrote:
On Friday 18 January 2002 2:15 pm, Matt Johnson wrote:
--- Michael Brown
wrote: perl -ne 'print join("\n", split(",",$_) ) if s/^pupil:.*:(.*)$/$1/' /etc/group
I don't know whether to laugh or cry!
A big thanks. I'll try it out (and I'll check out a few Perl books from Amazon I think too!). It only makes me want more...
The main one to try is Learning Perl by O'Reilly ISBN 0596001320.
I've never read it personally, but it's the one that everyone keeps quoting on the beginners@perl.org list.
I've got it and would recommend it. I think O'Reilly do a boxed set with that, the Camel book & the cookbook. The above is good for learning the language, the camel book is an excellent reference and goes into a good bit of detail, and the cookbook is good if you want to get an idea of how to write a script for something. eg. I wanted to write a small ftp client to grab a file in the early hours via cron so I just grabbed and adapted the one out of the cookbook. I'd also recommend `Learning the Bash shell' pub. O'Reilly. Even though you can do most of what you can with the shell with perl, I still like writing shell scripts as they're dead easy and you'll get to understand your boot scripts etc. Well worth investing some money in good books IMO if you want to get the best out of linux. -- Frank *-*-*-*-*-*-*-*-*-*-* Boroughbridge. Tel: 01423 323019 --------- PGP keyID: 0xC0B341A3 *-*-*-*-*-*-*-*-*-*-* http://www.esperance-linux.co.uk/ When you speak to others for their own good it's advice; when they speak to you for your own good it's interference.