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

边栏推荐
- 短域名绕过及xss相关知识
- 散列表的查找(哈希表)
- 高数_复习_第1章:函数、极限、连续
- the mechanism of ideology
- Chapter 09 Use of Performance Analysis Tools [2. Index and Tuning] [MySQL Advanced]
- 甘特图来啦,项目管理神器,模板直接用
- The 2022 EdgeX China Challenge will be grandly opened on August 3
- STM32使用stm32cubemx LL库系列教程
- How to simply implement the quantization and compression of the model based on the OpenVINO POT tool
- nodeJs--encapsulate routing
猜你喜欢
随机推荐
C学生管理系统 据学号查找学生节点
Live preview | 30 minutes started quickly!Look at credible distributed AI chain oar architectural design
fragment可见性判断
Amazon Cloud Technology joins hands with Thundersoft to build an AIoT platform for industry customers
leetcode-对称二叉树
关于#sql shell#的问题,如何解决?
02 [Development Server Resource Module]
01 【前言 基础使用 核心概念】
mysql树状结构查询问题
DAY22: sqli-labs shooting range clearance wp (Less01~~Less20)
Pisanix v0.2.0 发布|新增动态读写分离支持
Pisanix v0.2.0 released | Added support for dynamic read-write separation
行业案例|世界 500 强险企如何建设指标驱动的经营分析系统
Matlab map with color representation module value size arrow
".NET IoT from scratch" series
如何逐步执行数据风险评估
RAID disk array
2022-08-04:输入:去重数组arr,里面的数只包含0~9。limit,一个数字。 返回:要求比limit小的情况下,能够用arr拼出来的最大数字。 来自字节。
C学生管理系统 头添加学生节点
意识形态的机制




![02 [Development Server Resource Module]](/img/60/f77ed0bb0e5654c9dcd70b73a5bee8.png)



