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

边栏推荐
猜你喜欢
随机推荐
nodeJs--encapsulate routing
KingbaseES V8 GIS data migration solution (2. Introduction to the capabilities of Kingbase GIS)
领域驱动设计——MDD
Live playback including PPT download | Build Online Deep Learning based on Flink & DeepRec
在这个超连接的世界里,你的数据安全吗
.Net C# 控制台 使用 Win32 API 创建一个窗口
【OpenCV 图像处理2】:OpenCV 基础知识
leetcode-另一棵树的子树
sql语句多字段多个值如何进行排序
Pisanix v0.2.0 released | Added support for dynamic read-write separation
【 2 】 OpenCV image processing: basic knowledge of OpenCV
Intel XDC 2022 Wonderful Review: Build an Open Ecosystem and Unleash the Potential of "Infrastructure"
iNFTnews | What can NFTs bring to the sports industry and fans?
Amazon Cloud Technology joins hands with Thundersoft to build an AIoT platform for industry customers
C student management system Insert the student node at the specified location
Opening - Open a new .NET modern application development experience
2022-08-04:输入:去重数组arr,里面的数只包含0~9。limit,一个数字。 返回:要求比limit小的情况下,能够用arr拼出来的最大数字。 来自字节。
hypervisor相关的知识点
蚁剑高级模块开发
Transfer Learning - Joint Geometrical and Statistical Alignment for Visual Domain Adaptation


![[LeetCode Brush Questions] - Sum of Numbers topic (more topics to be added)](/img/ee/6b52072c841af99488dc0c1141c74c.png)





