Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- string = "$1"
- string2 = "suma"
- if [ $string != $string2 ]; then
- echo "Incorrect first argument!
- Consider using --help"
- exit 0
- if [ $# -lt 2 ]; then
- echo "Incorrect number of arguments!
- Consider using --help"
- exit 1
- fi
- while [ $# -ge 1 ]; do
- done
- shift
- while [ $# -ge 1 ]; do
- arg=$1
- if [ ! "$1" -eq "$1" ] ; then
- suma = $suma + $arg
- fi
- shift
- done
- printf "Suma argumentow: %s" "$arg"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement