愛用しているRust製Grepツール・ripgrepでファイル内容を置き換えるトリック。別ファイルに書き出すか、spongeを使う。Windows環境で雑に試してみると、sd(×sed)コマンドでも ほぼ同じ速度だった。

asiamothasiamoth のブックマーク 2023/02/05 17:31

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

Search and replace tricks with ripgrep

    ripgrep (command name rg) is a grep tool, but supports search and replace as well. rg is far from a like-for-like alternate for sed, but it has nifty features like multiline replacement, fixed stri...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう