当前位置:网站首页>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

边栏推荐
猜你喜欢
![[Decryption] Can the NFTs created by OpenSea for free appear in my wallet without being chained?](/img/81/2dcb61fd6c30f726804c73cf2b3384.jpg)
[Decryption] Can the NFTs created by OpenSea for free appear in my wallet without being chained?

《.NET物联网从零开始》系列

.Net C# 控制台 使用 Win32 API 创建一个窗口

js中try...catch和finally的用法

正则表达式,匹配中间的某一段字符串

直播预告|30分钟快速入门!来看可信分布式AI链桨的架构设计

The 2022 EdgeX China Challenge will be grandly opened on August 3

线性表的查找

使用SuperMap iDesktopX数据迁移工具迁移地图文档和符号

学习笔记-----左偏树
随机推荐
Tree search (bintree)
Opening - Open a new .NET modern application development experience
【LeetCode刷题】-数之和专题(待补充更多题目)
leetcode 15
在这个超连接的世界里,你的数据安全吗
回顾51单片机
没有对象的程序员如何过七夕
RAID磁盘阵列
开篇-开启全新的.NET现代应用开发体验
从零到一快速学会三子棋
Error: Not a signal or slot declaration
Common hardware delays
[ROS](10)ROS通信 —— 服务(Service)通信
Simple implementation of YOLOv7 pre-training model deployment based on OpenVINO toolkit
海量服务实例动态化管理
[机缘参悟-60]:《兵者,诡道也》-2-孙子兵法解读
C学生管理系统 头添加学生节点
直播回放含 PPT 下载|基于 Flink & DeepRec 构建 Online Deep Learning
fragment可见性判断
.Net C# 控制台 使用 Win32 API 创建一个窗口