ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    Linux 替换多个目录中的文本内容

    Mar 1, 20232 min read
    find . -type f -name "*.txt" -o -name "*.md" | xargs sed -i 's/old text/new text/g'
    

    | 表示管道,将 find 命令和 sed 命令连接起来,xargs 命令可以将每个找到的文件作为参数传递给 sed 命令进行替换。

    相关文章

    Oracle Data Cloud Crawler IP 地址

    Oracle Data Cloud Crawler IP addresses include individual IPs and ranges, and can be blocked using a robots.txt file specifying disallow for the User-agent "grapeshot".

    在JavaScript 中检测键盘输入事件/

    本文介绍了两种监听键盘输入事件的方法:使用 document.onkeydown/onkeypress 和 addEventListener,并指出后者避免了事件覆盖问题,同时提醒注意浏览器快捷键可能影响事件监听。

    Dockerfile ARG 参数说明和使用案例

    ARG 是 Dockerfile 中的一个指令,用于定义构建参数,增强 Docker 镜像的可配置性,允许在构建过程中动态传入参数以适应不同的构建环境。

    在 Taro 项目中创建底部 Tabs (Bottom Tabs)

    在 Taro 项目中创建底部 Tabs 涉及配置 `app.config.js` 文件、创建对应页面、添加图标并运行项目。

    git-credential-oskeychain mac一直弹出这个问题咋解决啊

    使用`git-credential-oskeychain`命令会在Mac上自动弹出凭证对话框,但可通过设置SSH密钥或使用Git凭证存储库来避免此情况。