💾 Archived View for freeshell.de › tldr › fastmod.gmi captured on 2024-05-10 at 12:02:42. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-04-28)

-=-=-=-=-=-=-

fastmod

A fast partial replacement for the codemod tool, replace and replace all in the whole codebase.
Regexes are matched by Rust regex crate.

More information.

fastmod {regex_pattern} {replacement}
fastmod --ignore-case {regex_pattern} {replacement} -- {path/to/file path/to/directory ...}
fastmod {regex} {replacement} --dir {path/to/directory} --iglob {'**/*.{js,json}'}
fastmod --fixed-strings {exact_string} {replacement} --extensions {json,js}
fastmod --accept-all --fixed-strings {exact_string} {replacement}
fastmod --accept-all --print-changed-files --fixed-strings {exact_string} {replacement}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).

CC-BY