Find and Replace (FNR) Try It
Find and replace text in multiple files. It can quickly search through large numbers of files and also find the information using regular expressions specifying the form of what you want, instead of literal text.
Version
Latest known: 1.8.1 (2018-06-22)
Latest known: 1.8.1 (2018-06-22)
Examples
1. Finds credit card-like values in log files and replace with (REDACTED)". Optionally changes the file date.
fnr.exe --cl --dir "d:\logs" --fileMask "*.log" --useRegEx --KeepModifiedDate --find "\b(?:\d[\s-]*?){12,16}\b" --replace "(REDACTED)"
Try it
- Rename a JSON key (sandboxed)
Use Find and Replace (fnr) to rename the JSON key 'balance' to 'accountBalance' in users.json. Because fnr's CLI operates against an entire directory matched by -dir + -fileMask (modifying files IN PLACE), the demo first copies users.json into a UUID-named sandbox subfolder under the OS temp directory, runs fnr against that sandbox, reads the modified file back into the page, then deletes both the file and the sandbox folder. The shared sample is never touched. Drop -caseSensitive or add -useRegEx to pick up partial matches; pair with -includeSubDirectories to scan a tree.
Agree to terms to run demos.