Replace strings in text file

REPLACEINFILE replaces characters in ASCII file using PERL

You are now following this Submission

Easy and efficient way to replace strings in ASCII files.
For example replace commas ',' to points '.' in large data files for easier load.

Cite As

Pekka Kumpulainen (2026). Replace strings in text file (https://www.mathworks.com/matlabcentral/fileexchange/18909-replace-strings-in-text-file), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.0.0

'-nobak' option to remove backup file, fixed help a little

1.1.0.0

Now supports paths with spaces, forced overwrite of existing output file, corrected replaceing of '.' and '\'

1.0.0.0

Note on platforms