Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


perl_replace_string_inline

Inline string replacement with Perl

perl -p -i -e 's/5005P/500P /g' /path/to/files/filename_date_2015*.txt

perl -p -i -e 'BEGIN{undef $/;} s/.*<pre>//smg' history_file.txt
perl_replace_string_inline.txt · Last modified: 2025/03/20 19:33 by juckins