当前位置:网站首页>Shell script receives and returns parameters
Shell script receives and returns parameters
2022-07-19 03:19:00 【Nutshell】
One 、 Script receive parameters
$1 Represents the first parameter
$2 Represents the second parameter
…
[email protected] Represents all parameters
#!/bin/bash
if [ $1="xiaofeiyu" ]
then
echo "my name is $1"
fi
if [ $2="happy" ]
then
echo "I'm very $2"
fi

Two 、 Script reply parameters
#!/bin/bash
fdisk sd.img <<EOF
n
p
1
2048
4096
EOF
边栏推荐
- ES6学习笔记——B站小马哥
- Win10 onedrive failure reinstallation
- Redis和其他数据库的比较
- 05-中央处理器
- The WinRAR command copies the specified folder as a compressed file, and calls the scheduled task for backup.
- Go language realizes sending SMS verification code and logging in
- Common MySQL commands you can use
- 樂視還有400多比特員工?過著沒有老板的神仙日子 官方出來回應了...
- Replacement operation not supported by ncnn partial operators
- Authentication code for wireless
猜你喜欢

LETV has more than 400 employees? Living a fairy life without a boss, the official responded

After 4 years of developing two-sided meituan, we finally lost: the interview question of volatile keyword function and principle

Data source object management (third-party object resources) & load properties file

无法访问此网站无法找到DNS地址DNS_PROBE_STARTED怎么办?
![[NoSQL] redis high availability and persistence](/img/73/53580db08b33c06c595fb3dfd6abce.png)
[NoSQL] redis high availability and persistence
![深入理解机器学习——类别不平衡学习(Imbalanced Learning):样本采样技术-[人工采样技术之SMOTE采样法及Borderline-SMOTE采样法]](/img/9f/a0d03b23e66849f12150f9a72f36c5.png)
深入理解机器学习——类别不平衡学习(Imbalanced Learning):样本采样技术-[人工采样技术之SMOTE采样法及Borderline-SMOTE采样法]
![[NoSQL] redis configuration and optimization of NoSQL (simple operation)](/img/e4/dcfeb675fd0ff4be3687547b28048d.png)
[NoSQL] redis configuration and optimization of NoSQL (simple operation)

Is there really no way out for functional testing? 10K capping is never a joke

GraphQL初识

ES6學習筆記——B站小馬哥
随机推荐
【单片机仿真】(七)寻址方式 — 位寻址
SysTick定时器的基础学习以及手撕代码
Fiddler grabbing
Code demonstration of fcos face detection model in openvino
[MCU simulation] (V) addressing mode - immediate addressing and register indirect addressing
Thinking for half a year
【单片机仿真】(一)Proteus8.9 安装教程
Graphql first acquaintance
Wechat applet -- Summary of problems in the actual development of taro framework
My most productive easypypi once again has been updated! V1.4.0 release
[MCU simulation] (XVIII) control transfer instructions - empty operation instructions
Configure high availability using virtual ip+kept
[MySQL] MHA high availability
[regression prediction] lithium ion battery life prediction based on particle filter with matlab code
Ncnn allocator memory allocator
【单片机仿真】(六)寻址方式 — 变址寻址与相对寻址
Several methods of face detection
In depth understanding of machine learning - unbalanced learning: sample sampling technology - [adasyn sampling method of manual sampling technology]
SQL经典练习题(x30)
Comparison between redis and other databases