Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


replace_string_inline

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

replace_string_inline [2015/06/21 19:31]
juckins created
replace_string_inline [2018/06/27 19:08] (current)
juckins
Line 3: Line 3:
 <​code>​ <​code>​
 perl -p -i -e '​s/​5005P/​500P /g' /​path/​to/​files/​filename_date_2015*.txt 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
 </​code>​ </​code>​
replace_string_inline.txt ยท Last modified: 2018/06/27 19:08 by juckins