码迷,mamicode.com
首页 > 其他好文 > 详细

./g1.sh q w e r 5个参数

时间:2019-11-21 20:03:53      阅读:68      评论:0      收藏:0      [点我收藏+]

标签:lib   this   oca   hardware   lin   base   ble   utf-8   info   

# ./g1.sh q w e r t
./g1.sh q w e r
5个参数
number is q w e r t
[root@localhost get]# cat g1.sh
#!/bin/bash
# -*- coding: utf-8 -*-
#--------------------------------------------------
#Author:c 
#Email:libizaking@163.com
#FileName:getinfo.sh
#Function:create a file called hardware-software-info-neokylin.txt which print all info of OS
#Version:1.0
#Version:2.0 --20190520
#Version:4.0 --20190716
##Version:5.0 --20190722
##Version:5.1 --20190902
##Version:.0 --2019
##Version:.0 --2019
##Version:.0 --20190
#
##
#Version:
#Version:
#Created:2019-04-17
#--------------------------------------------------
###this shell is to print all of the hardware-software-info in a file
####three varibles :basepath
###chang address aa bb
echo "$0 $1 $2 $3 $4 "
echo "$#个参数"
echo "number is $*"

[root@localhost get]#

./g1.sh q w e r 5个参数

标签:lib   this   oca   hardware   lin   base   ble   utf-8   info   

原文地址:https://www.cnblogs.com/xuanbjut/p/11907844.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!