#!/bin/bash
echo "passed arguments: $1 $2 $3.. array $@"
shift
echo "passed arguments: $1 $2 $3.. array $@"
declare -a arr=("sankar" "suriya" "pal" )
echo "length of array arr: ${#arr[@]}"
echo -e "$@"
shift 2
echo -e "$@"
echo "array ${arr[@]}"
echo "passed arguments: $1 $2 $3.. array $@"
shift
echo "passed arguments: $1 $2 $3.. array $@"
declare -a arr=("sankar" "suriya" "pal" )
echo "length of array arr: ${#arr[@]}"
echo -e "$@"
shift 2
echo -e "$@"
echo "array ${arr[@]}"
No comments:
Post a Comment