привет.
имеется такой мегапростой скрипт:
echo "args: ${@}"
echo "size: $#"
var1="${@:1:1}"
var2="${@:2:2}"
var3="${@:3:3}"
var4="${@:4:4}"
echo "var1: $var1"
echo "var2: $var2"
echo "var3: $var3"
echo "var4: $var4"
args: one two three four
size: 4
var1: one
var2: two three
var3: three four
var4: four
спасибо.