01-17-2006
Unix Shell Scripting Guidelines
Hi,
I was wondering if any of you guys have developed shell scripting guidelines for writing unix shell scripts effectively. This includes naming standards, comments, indentation, error handing after unix comands, use of exported variables, sending notifications, functions, logging etc...
Thanks in advance,
AC
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I need to write a script which analyses an invoice file, counting the amount of pages in the file to be printed per account number and per invoice. The account numbers are stored in another file which has instructions on what do with ach customers invoice as per their account number.
please... (6 Replies)
Discussion started by: la_burton
6 Replies
2. Shell Programming and Scripting
please give the difference between AIX shell scripting and Unix shell scripting. (2 Replies)
Discussion started by: haroonec
2 Replies
3. Shell Programming and Scripting
i have a file blah_blah_blah_yyyymmdd.dat . I need to write a shell script to extract this date and compare it with the current date. How do i do this?? Can someone provide me with the code please? (1 Reply)
Discussion started by: swarna bhat
1 Replies
4. Shell Programming and Scripting
Hi ,
I am beginner in Unix. I have a string /aa/bb/cc/dd. I want to extract the sub string /aa/bb/cc from this . How do i do that in bash? (1 Reply)
Discussion started by: vignesh53
1 Replies
5. UNIX for Dummies Questions & Answers
Hello Experts,
I have the following questions to be discussed here at this esteemed discussion forum.
I have two Excel sheets which contain Unix Commands llike creating directory the structure/ftp/Copy/Zip etc to basically create an environment. I need help in understanding some of... (1 Reply)
Discussion started by: faizsaadq
1 Replies
6. Shell Programming and Scripting
Requirement is :-
1. there will be daily monthly and on demad flat files coming in SourceDir folder in unix.
I want that if daily files are copied in the folder then my script shd check that if files are copied and are correct then process to load files trigger otherwise send a mail to... (1 Reply)
Discussion started by: Ruchi A
1 Replies
7. Programming
Hi All,
need help to complete the automation but stuck at a perticular situation
below is the code
<code>
fixed_function_name
{
code....
code....
variable_map=
{
a="/a"
b="/b"
c="/c"
so on...
} (7 Replies)
Discussion started by: yadavricky
7 Replies
8. UNIX for Beginners Questions & Answers
Describe in short the word completion feature of the tcsh
Completion works anywhere in the command line, not at just the end, for both commands and filenames. Type part of a word and hit the Tab key, and the shell replaces the incomplete word with the complete one in the input buffer. The... (1 Reply)
Discussion started by: Elena Lauren
1 Replies
unalias(1) General Commands Manual unalias(1)
NAME
unalias - Removes alias definitions
SYNOPSIS
unalias alias-name...
unalias -a
Note
The C shell has a built-in version of the unalias command. If you are using the C shell, and want to guarantee that you are using the com-
mand described here, you must specify the full path /usr/bin/unalias. See the csh(1) reference page for a description of the built-in com-
mand.
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
unalias: XCU5.0
Refer to the standards(5) reference page for more information about industry standards and associated tags.
OPTIONS
Removes all alias definitions from the current shell execution environment.
OPERANDS
The name of an alias to be removed.
DESCRIPTION
The unalias utility removes the definition for each alias name specified. The aliases are removed from the current shell execution environ-
ment.
EXIT STATUS
The following exit values are returned: Successful completion. One of the alias-name operands specified did not represent a valid alias
definition, or an error occurred.
ENVIRONMENT VARIABLES
The following environment variables affect the execution of unalias: Provides a default value for the internationalization variables that
are unset or null. If LANG is unset or null, the corresponding value from the default locale is used. If any of the internationalization
variables contain an invalid setting, the utility behaves as if none of the variables had been defined. If set to a non-empty string
value, overrides the values of all the other internationalization variables. Determines the locale for the interpretation of sequences of
bytes of text data as characters (for example, single-byte as opposed to multibyte characters in arguments). Determines the locale used to
affect the format and contents of diagnostic messages written to standard error. Determines the location of message catalogues for the
processing of LC_MESSAGES.
SEE ALSO
Commands: alias(1), csh(1)
Standards: standards(5)
unalias(1)