dot-patch_file: Replace a string in a file (first occurrence only)

.patch_fileR Documentation

Replace a string in a file (first occurrence only)

Description

Replace a string in a file (first occurrence only)

Usage

.patch_file(path, old, new)

Arguments

path

file path

old

string to find (fixed, not regex)

new

replacement string


DT2 documentation built on June 14, 2026, 9:06 a.m.