linux shell 脚本

来源:互联网 发布:标书制作工程软件 编辑:程序博客网 时间:2024/04/29 21:36

#! /bin/bash
# echo "The No. of parameter is: $#";使用了环境变量
# echo "The script name is : $0";
# echo "The parameters in the scriopt are:$*";
A=9 # 自定义变量
B="HelloWorld" #自定义变量
C="/mnt/hgfs/XpSoft/temp/testshell/onesh" #自定义变量,要拷贝的文件名
D="/mnt/hgfs/XpSoft/temp/testshell/onesh2"  #自定义变量,拷贝到的文件名
echo $A #使用自定义的变量
echo $B
cp $C $D # 拷贝文件

原创粉丝点击