Book recommendations (slightly OT)

doug doug at fledge.watson.org
Wed Jul 27 14:40:42 UTC 2011



On Tue, 26 Jul 2011, Mark Moellering wrote:

> I want to automate some tasks, creating directories, file editing, etc.  I 
> was going to pick up a book on shell scripting but wanted to ask the list if;
> A) I am barking up the wrong tree and should use something else.
> B) If I am headed in the right direction, what is the best book / resource to 
> use?
>
> Thanks in advance
>
> Mark Moellering

I second Matthew's sh recommendation. Doing admin stuff is much much easier if 
you learn the basics of regular expressions, awk, sed and xargs. Also find. The 
daily jobs and the scripts in /etc have lots of coding examples. Of course 
mergermaster and portmaster are the king and queen of sh scripts. Google will 
yield thousands of simple examples of all the above and more.

If you are doing lexical stuff perl is hard to beat.


More information about the freebsd-questions mailing list