linux shell demos(1)

来源:互联网 发布:mac发送pkg自动zip 编辑:程序博客网 时间:2024/06/10 21:24
echo hello,worldecho UID:$UIDecho HOME:$HOME
v1=xiuyev2=10echo you are $v1,now time is $v2
cmd=`pwd`echo current path = $cmd
if datethen echo okfi
for v in a b c d e f g h i j k l m n o p q r s t u v w x y zdo echo Letter:$vdone
for file in ./*do echo $filedone
for ((i=0;i<10;i++))doecho number is $idone
v=100if [ $v -eq 100 ]then echo okfi
echo 1:$1,2:$2


0 0
原创粉丝点击