Shell Scripting

From Defconx.wiki
Jump to: navigation, search

Contents

Shell Scripting

Resources and links about shell scripting. This includes bash scripting as well as dos cmd scripting.

bash scripting

Code Snippets

Bash Code Snippets

-z The -z operator means 'is this an empty string?'. Notice the double quotes around the $1: they are mandatory here.

Example:

if [ -z "$1" ]
then
    echo $0: usage: $0 filename
    exit 3
fi

External References

Local References and Code Snippets

DOS CMD scripting

External References

Local References and Code Snippets

Personal tools