Shell Scripting: by Karthik V
Shell Scripting: by Karthik V
By Karthik V
$#, $@ & $?: Bash Built-in variables
file:test.sh
#! /bin/sh
echo '$#' $#
echo '$@' $@
echo '$?' $?
> ./test.sh 1 2 3
then
else
fi
if Condition
#!/bin/bash
# Basic if statement
if [ $1 -gt 100 ]
then
fi
References:
http://unix.ittoolbox.com/groups/technical-functional/unixadmin-l/difference-betwee
n-0-and-in-unix-shell-scripts-1789925