当前位置:网站首页>shell statement to modify txt file or sh file
shell statement to modify txt file or sh file
2022-08-05 02:30:00 【fK0pS】
The shell statement modifies the txt file or the sh file
Basic ideas, use regular expressions, find the target, replace the target, save the file
shell sed regular expression
regular expression
Option 1:
runScSparkFilename="runScSpark.sh"sed -i "s/$search/$replace/" $filename
Option 2:
$ cat /etc/syslog.conf | sed -n '/^[[:alpha:]]/p'authpriv.* /var/log/secure
边栏推荐
- 浅谈数据安全治理与隐私计算
- RAID disk array
- 迁移学习——Distant Domain Transfer Learning
- Matlab map with color representation module value size arrow
- 【MySQL series】- Does LIKE query start with % will make the index invalid?
- 蚁剑高级模块开发
- Tree search (bintree)
- 常见的硬件延迟
- Jincang database KingbaseES V8 GIS data migration solution (3. Data migration based on ArcGIS platform to KES)
- 关于#sql shell#的问题,如何解决?
猜你喜欢
释放技术创新引擎,英特尔携手生态合作伙伴推动智慧零售蓬勃发展
LeetCode uses the minimum cost to climb the stairs----dp problem
01 [Foreword Basic Use Core Concepts]
shell语句修改txt文件或者sh文件
【LeetCode刷题】-数之和专题(待补充更多题目)
Leetcode刷题——22. 括号生成
从零到一快速学会三子棋
【 2 】 OpenCV image processing: basic knowledge of OpenCV
Intel XDC 2022 Wonderful Review: Build an Open Ecosystem and Unleash the Potential of "Infrastructure"
select tag custom style
随机推荐
C language diary 9 3 kinds of statements of if
Intel XDC 2022 Wonderful Review: Build an Open Ecosystem and Unleash the Potential of "Infrastructure"
RAID磁盘阵列
回顾51单片机
.Net C# 控制台 使用 Win32 API 创建一个窗口
dotnet 6 为什么网络请求不跟随系统网络代理变化而动态切换代理
C student management system Insert the student node at the specified location
学习笔记-----左偏树
Matlab map with color representation module value size arrow
“嘀哩哩,等灯等灯”,工厂安全生产的提示音
DAY22:sqli-labs 靶场通关wp(Less01~~Less20)
HOG feature study notes
后期学习计划
Transfer Learning - Joint Geometrical and Statistical Alignment for Visual Domain Adaptation
fragment可见性判断
LeetCode uses the minimum cost to climb the stairs----dp problem
短域名绕过及xss相关知识
shell语句修改txt文件或者sh文件
继承关系下构造方法的访问特点
Apache DolphinScheduler新一代分布式工作流任务调度平台实战-中