shell-参数作下标

test.shbash

#!/bin/bash
#用第3个参数做为下标或position,来获取参数
param=$(eval echo \$$3)
echo "hello, $param"

相关文章
相关标签/搜索