123456789101112131415161718192021222324252627282930313233343536 |
- #!/bin/bash
- name=`basename $0`
- echo "Name of the running program: $name"
- if [[ -e $FILENAME ]]
- then
- echo $FILENAME exists
- fi
- echo "The first parameter is $1."
- echo "The second parameter is $2."
- valu=$1
- minim=$2
- if [[ $valu -lt $minim ]]
- then
- echo "value is too min"
- fi
- if (( $? )) ; then echo "previous comm failed" ; fi
- [[ -d $DIR ]]
- for ff
- do
- echo here is arg: $ff
- done
- echo number of args is $#
|