Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tired of asking for scripts.

Status
Not open for further replies.

yowza

Technical User
Nov 28, 2001
121
US
Quite often I find myself thinking how nice it would be to write a script to do "whatever" and am forced to ask someone else because I don't know how. Can someone recommend a good book or way that I could learn to write scripts? I am in the process of learning Perl but need to get into awk, sed cut and whatever.

Many thanks!
 
Look at the O'Reilly books:

awk and sed
UNIX in a nutshell
ksh

Bill.
 
And the other thing you should do is look at the scripts that are already on your machine:

file /usr/bin/* | grep script

will turn up hundreds of examples- and there are more scattered about other places.

(exactly what to grep for may be different on your system but that works well on Linux)

Learn from what's there..it can be quite educational :)

Tony Lawrence
SCO Unix/Linux Resources tony@pcunix.com
 
Last week, we were offered a useful (shell) script called "findit" which I have since installed and used.

It was posted on this forum via URL:
thread80-212975 also gives some good ideas on writing such scripts AS WELL AS ACTUALLY BEING USEFUL !

 
Thanks for the suggestions pcunix and matchum. I appreciate it.

Yowza
 
I'm thinking about setting up a script repository, anyone else fancy lending a hand. Somthing like on UGU, but with scripts that are useful. What do you think?

Mike --
| Mike Nixon
| Unix Admin
| ----------------------------
 
Do what I did...
Take a unix class at your friendly neighborhood community college. I learned a ton... vi, sed, awk, shell scripting. raider2001 suggested a very good book as well. Good luck!!
 
The best Shell Scripting book I used is called "UNIX Shell Programming" written by Stephen G. Kochan and Patrick H. Wood. ISBN 0-672-48448-X I've used it in college for begging shell scripting and still use it now for basic references..

Also, if you you are interested in learing PERL ( which is great ) look up this book "Perl by Example" by Ellie Quigley ISBN 0-13-122839-0 Both are great beginner books

Good luck,
Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top