首页 > 技术文章 > bash 初探

sunshine-free 2020-09-18 19:29 原文

#!/usr/bin/bash
echo "hello world!!"
num=100
PI=3.14
STR="hello"
str_2='world!'

echo ${num}
echo ${PI}
echo ${STR}
echo ${str_2}

x=$[$num-50]
echo $x
echo ${x}

array[1]=$num
array[2]=$PI
echo ${array[2]}
exit 0

推荐阅读