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 (2024). Replace strings in text file (https://www.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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
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