Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


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
replace_string_inline.txt · Last modified: 2018/06/27 19:08 by juckins