Replace strings in text file
Version 1.2.0.0 (1.92 KB) by
Pekka Kumpulainen
REPLACEINFILE replaces characters in ASCII file using PERL
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 LinuxCategories
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > Text Files >
- MATLAB > Language Fundamentals > Data Types > Characters and Strings >
Find more on Text Files in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: Make Inkscape PostScript files compatible with psfrag in LaTeX
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.