坐井以观天
发布时间:2013-12-19 17:51:07
str="id=1000"local $streval $strlocal 与 eval 都可以执行某字符串,但两者却有点细微的差别loal 只能在函数内部对某字符串进行执行eval 可以在任何地方都可以对某字符串进行执行......【阅读全文】
发布时间:2013-12-19 17:44:06
# data records are separated by newline symbol,filds are separated by comma symbol# take it as a entire string # put it into a arrayarr=(`echo -e "name=joe,id=5\nname=jack,id=7\nname=ben,id=10"`)echo "records contents: ${arr[@]}"echo "records number: ${#arr[@]}"for i in ${arr[@]}do&.........【阅读全文】