当前位置:网站首页>Pure shell implementation of text replacement
Pure shell implementation of text replacement
2022-07-31 05:58:00 【tcliuwenwen】
Blog Background
Do not rely on tr and do not rely on sed to achieve text replacement using pure shell
Detailed operation
Note: The test takes effect under bash version 5.1.16, but it doesn't seem to take effect under version 5.0
echo hello | while read -r str; do echo "${str//l/n}"; done
echo hello | (read -r str; echo "${str//l/n}")
边栏推荐
- sqlmap injection tutorial common commands
- this指向问题
- 【windows】--- SQL Server 2008 超详细安装教程
- Error: Cannot find module ‘D:\Application\nodejs\node_modules\npm\bin\npm-cli.js‘
- Linux modify MySQL database password
- 为什么redis是单线程还那么快?
- Build DVWA with phpstudy
- Error: Cannot find module 'D:\Application\nodejs\node_modules\npm\bin\npm-cli.js'
- 初识正则表达式
- Year-end summary - the years are quiet~
猜你喜欢
2021美赛C题M奖思路
MySQL-如何分库分表?一看就懂
[Cloud native] Simple introduction and use of microservice Nacos
年终总结——岁月静好~
mysql password modification method in Linux (pro-test available)
Why is the redis single-threaded also so fast?
对于输出点是时间戳的渗透测试方法(以Oracle数据库为例)
(Crypto必备干货)详细分析目前NFT的几大交易市场
数据库 | SQL增删改查基础语法
How MySQL - depots table?A look at will understand
随机推荐
How to distinguish big and small endian in C language
动态规划(一)| 斐波那契数列和归递
[JVM Loading]---Class Loading Mechanism
小白学爬虫——爬虫入门
[Elastic-Job] Overview of Distributed Scheduling Tasks
【ubuntu20.04安装MySQL以及MySQL-workbench可视化工具】
SSH自动重连脚本
kotlin 插件更新到1.3.21
MySql to create data tables
什么是EVM兼容链?
正则表达式基础知识
sql 添加 default 约束
this指向问题
元宇宙的前景及四大赛道
Install mysqldb in mac10.14
Yuan prospect and four track of the universe
Fragmented NFT (Fractional NFT)
sqlmap注入教程 常用指令
About integrating superset into your own project
js中的break与continue退出