当前位置:网站首页>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}"; doneecho hello | (read -r str; echo "${str//l/n}")边栏推荐
猜你喜欢

Artifact SSMwar exploded Error deploying artifact.See server log for details

数据库 | SQL增删改查基础语法

What is an EVM Compatible Chain?

flutter arr 依赖

为什么redis是单线程还那么快?

(Crypto essential dry goods) Detailed analysis of the current NFT trading markets

代码块、Package,Import,封装(第六天)

阿里一面,说说你知道消息中间件的应用场景有哪些?

GUCCI, LV and other luxury giant universe how to layout yuan, other brands should keep up with?

数字孪生将成为进入“元宇宙”一项重要的途径
随机推荐
SSH自动重连脚本
什么是EVM兼容链?
C language tutorial (2) - printf and data types that come with c
计网 Packet Tracer仿真 | 简单易懂集线器和交换机对比(理论+仿真)
小白学爬虫——爬虫入门
SQL注入中数据库的判断
局部变量成员变量、引用类型、this,static(第五天)
Redis:简单实用
Markdown 帮助文档
Error: Cannot find module ‘D:\Application\nodejs\node_modules\npm\bin\npm-cli.js‘
Build vulhub vulnerability shooting range on kali
Xiaobai learns reptiles - introduction to reptiles
腾讯云GPU桌面服务器驱动安装
CMOS管原理,及其在推挽电路中的应用
代码执行漏洞
阿里云中mysql数据库被攻击了,最终数据找回来了
一文速学-玩转MySQL获取时间、格式转换各类操作方法详解
【ubuntu20.04安装MySQL以及MySQL-workbench可视化工具】
mysql password modification method in Linux (pro-test available)
自定dialog 布局没有居中解决方案