tips


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers tips
# 1  
Old 02-24-2011
Question standardizing shell script

hi...

I want some tips for standardizing shell script code...

Last edited by xerox; 02-24-2011 at 09:41 AM.. Reason: missed title
# 2  
Old 02-24-2011
That's rather nebulous. But a good place to start is to define the language to be used. You want shell scripts that can run on any platform you are likely to use. For the shell itself, I would go with ksh or bash. Our friend Chris Johnson would go one step futher and limit things to the syntax blessed by posix which will run on bask or ksh or a number of other shells. Most of us would prohibit csh.

Shells rarely can stand completely on their own. You need to use external programs. sed, awk, and perl are commonly used. I personally would get lost quickly in a ksh script that made extensive use of ruby or python. We have plenty of systems without either language. There is a posix list of required external commands. There is no posix perl nor any posix language with the power of perl. I would press for posix commands + perl.
This User Gave Thanks to Perderabo For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Vim tips and tricks

Vim Tips and Tricks Save and quit :w => Save :q => Exit as long as there have been no changes :q! => Exit and ignore any changes :wq => Save and Exit. :x => Exit, saving changes ZZ => Exit and save changes if any have been made :10,20w filename => writes the... (34 Replies)
Discussion started by: ungalnanban
34 Replies

2. UNIX for Dummies Questions & Answers

Just asking - Tips on how to maintain your scripts ..

Hi all, Just writing to ask if any one can advise on what tools to use best for maintaining your scripts ... preferably free/open source and portable if there is one, that is, one that can be placed and run on a USB stick ... At the moment, am having them in directories and files and no... (2 Replies)
Discussion started by: newbie_01
2 Replies

3. Post Here to Contact Site Administrators and Moderators

Solaris tips and tricks

What do you think could we open new top topic with tips and tricks and to show to other users some tricks what do we know like dtrace , new virtual server , how to add new users etc. This is only suggestion (1 Reply)
Discussion started by: solaris_user
1 Replies

4. Solaris

using pca for the first time, any tips?

I am wanting to use pca to update my solaris 10 server. I have figured out how to give it my SOA credentials, set it to auto update the pca tool and ignore a few patches I don't want to do. I have also ran: pca -l missingrs to list all available patches I need in the recommended and... (2 Replies)
Discussion started by: NewSolarisAdmin
2 Replies

5. Red Hat

linux tips

Hi, I am working on a linux install to a desktop pc and will configure this onto our main server once happy with the functions etc. I am actually a HP and AIX sys admin and was looking for the best ways to: create a bootable file that can be copied to dvd-rw / cd-rw or to dds be able to... (8 Replies)
Discussion started by: chlawren
8 Replies

6. Solaris

tips Solaris

hi all... I need to know, how I can create a log when the user loggin and logout...day and hour....any person help me..... thank you (7 Replies)
Discussion started by: chanfle
7 Replies

7. Tips and Tutorials

Welcome to Tips and Tutorials

Tips and Tutorials was created partially as an overflow from our Answers to Frequently Asked Questions. We noticed that some of the info in that forum did not really answer a question that is frequently asked. We want to keep the FAQ forum small so that it is easily browsed. Also, a few users... (0 Replies)
Discussion started by: Perderabo
0 Replies

8. UNIX for Dummies Questions & Answers

Tips on startup?

I'm running a small FreeBSD 5.1 system @ home. Whenever you log in with a normal account (not root) the system displays a random tip (commands, etc.) after the MOTD. I'd like to turn this feature off so that my custom MOTD fits on one screen. Is this posible at all? (3 Replies)
Discussion started by: McFlashbang
3 Replies
Login or Register to Ask a Question