当前位置:网站首页>Shell Basics (exit control, input and output, etc.)
Shell Basics (exit control, input and output, etc.)
2022-07-25 12:44:00 【Test_ the_ rookie】
One 、 Out of control
break: Exit the current loop , Will not enter the next cycle . Exit one layer by default , To exit the two-level loop, you need to use :break2
continue: Exit the current loop , And into the next cycle .
exit: Exit script
return: The entire function returns
Two 、 Practical commands
$!: You can view the latest running process in the background id
(): The code command is in sub shell Run in
{}: Represents at present shell Run in
&: Let the process run in the background ==》 Process name & ( The process enters the background to run , It does not affect the operation of the front desk )
$$: View the currently running script pid
set: Get all current variables
env: Get the variables that can be passed to the child process
3、 ... and 、 Input and output :
read: Read input
>> : Add content to the specified file
> : Add content to the specified file ( Will overwrite the original content )
<: Read the contents of the specified file
I: Pipe, , The result of the previous command can be passed to the next command
Four 、 wildcard
echo * : Print all directories under the current directory
echo ?: Printing and ? Matching files
echo “*???”: Output name and ??? Partially matched files
边栏推荐
- 【二】栅格数据显示拉伸色带(以DEM数据为例)
- R language uses wilcox The test function performs Wilcox signed rank test to obtain the confidence interval of the population median (the default output result includes the confidence interval of 95%
- 2022河南萌新联赛第(三)场:河南大学 I - 旅行
- Crawler crawls dynamic website
- 基于JEECG制作一个通用的级联字典选择控件-DictCascadeUniversal
- MySQL exercise 2
- 【九】坐标格网添加以及调整
- 感动中国人物刘盛兰
- 微软Azure和易观分析联合发布《企业级云原生平台驱动数字化转型》报告
- 【9】 Coordinate grid addition and adjustment
猜你喜欢

艰辛的旅程

A hard journey

Fiddler packet capturing app

clickhouse笔记03-- Grafana 接入ClickHouse
![[fluent -- example] case 1: comprehensive example of basic components and layout components](/img/d5/2392d9cb8550aa2692c8b41303d507.png)
[fluent -- example] case 1: comprehensive example of basic components and layout components

Pytorch advanced training skills

【问题解决】ibatis.binding.BindingException: Type interface xxDao is not known to the MapperRegistry.

2022.07.24(LC_6124_第一个出现两次的字母)

【Rust】引用和借用,字符串切片 (slice) 类型 (&str)——Rust语言基础12

Clickhouse notes 03-- grafana accesses Clickhouse
随机推荐
【三】DEM山体阴影效果
If you want to do a good job in software testing, you can first understand ast, SCA and penetration testing
【AI4Code】《Contrastive Code Representation Learning》 (EMNLP 2021)
Implementation of recommendation system collaborative filtering in spark
【Rust】引用和借用,字符串切片 (slice) 类型 (&str)——Rust语言基础12
The first scratch crawler
使用TensorBoard可视化训练过程
启牛开的证券账户安全吗?是怎么开账户的
想要做好软件测试,可以先了解AST、SCA和渗透测试
[shutter -- layout] stacked layout (stack and positioned)
业务可视化-让你的流程图'Run'起来(3.分支选择&跨语言分布式运行节点)
Build a series of vision transformer practices, and finally meet, Timm library!
A hard journey
logstash
If you want to do a good job in software testing, you can first understand ast, SCA and penetration testing
想要做好软件测试,可以先了解AST、SCA和渗透测试
2022 Henan Mengxin League game (3): Henan University I - Travel
Azure Devops (XIV) use azure's private nuget warehouse
【AI4Code】《GraphCodeBERT: Pre-Training Code Representations With DataFlow》 ICLR 2021
cmake 学习使用笔记(二)库的生成与使用