Replace strings in text file

REPLACEINFILE replaces characters in ASCII file using PERL
8.8K Downloads
Updated 8 Jan 2009

View License

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://se.mathworks.com/matlabcentral/fileexchange/18909-replace-strings-in-text-file), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
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