当前位置:网站首页>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
边栏推荐
猜你喜欢

RTX3090安装pytorch3D

zsh: command not found: mysql

04_服务注册Eureka

Mysql多表查询

05 central processing unit

A Youku VIP member account can be used by several people to log in at the same time. How to share multiple people using Youku member accounts?

工具及方法 - Excel插件XLTools
![[NoSQL] redis high availability and persistence](/img/73/53580db08b33c06c595fb3dfd6abce.png)
[NoSQL] redis high availability and persistence

Face key point detection
![[MCU simulation] (XX) org - set start address](/img/9e/4e44dd779b0de28a190d86fbb1c2c0.png)
[MCU simulation] (XX) org - set start address
随机推荐
2002 - Can‘t connect to server on ‘127.0.0.1‘ (36)
SQL classic exercises (x30)
In depth understanding of machine learning - unbalanced learning: sample sampling technology - [smote sampling method and borderline smote sampling method of manual sampling technology]
CorelDRAW 安装不了解决方法
Polynomial interpolation fitting (III)
Using gatekeeper to restrict kubernetes to create specific types of resources
Thinking for half a year
GraphQL初识
深入理解机器学习——类别不平衡学习(Imbalanced Learning):样本采样技术-[人工采样技术之ADASYN采样法]
内置键盘连续444
MySQL log management and full backup incremental backup and recovery
Pytorch best practices and code templates
D. Permutation Restoration(贪心/双指针/set)
[MySQL] MHA high availability
First blog ----- self introduction
Affine transformation implementation
Built in keyboard continuous 444
[MCU simulation] (V) addressing mode - immediate addressing and register indirect addressing
Need to slow down a little
Is there really no way out for functional testing? 10K capping is never a joke