TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Shell patterns for easy automated code migrations

2 点作者 gcmeplz将近 3 年前

1 comment

gigatexal将近 3 年前
Did not know this:<p>“ use | (or anything else!) as your delimiter rather than &#x2F;. sed takes the first character after the command as the delimiter, and &#x2F; will show up in things that you want to replace pretty often! Writing gsed &#x27;s|&#x2F;path&#x2F;file.js|&#x2F;path&#x2F;file.ts|&#x27; is nicer than gsed &#x27;s&#x2F;\&#x2F;path\&#x2F;file.js&#x2F;\&#x2F;path\&#x2F;file.ts&#x2F;&#x27;.”<p>Thank you!!!