Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Replace in files (CLI)
#1

A CLI script that replaces strings in files - recursively in multiple directories.
Files are filtered by *.txt filesystem matching convention, optionally directories are recursively traversed.
A text is replaced with another one, case sensitive.

The advantage of this over sed is you don't have to enter escaped regexps and worry about the results and you also don't need to enter parameters, you are asked each time.


Attached Files
.phpx replace-in-files.phpx Size: 1,56 KB  Downloads: 652

[Image: kavove-zrnka-lajna.jpg]
Coffee phreak!
Reply




Users browsing this thread: 1 Guest(s)