Replace strings in text file

REPLACEINFILE replaces characters in ASCII file using PERL
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 (, 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

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

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

Note on platforms