note
dbwiz
<code>
perl -i.bak -pe 's/frog/toad/g' txtfile
</code>
<p>This one-liner will save your old file into txtfile.bak, and modify txtfile by changing every occurrence of "frog" into "toad".</p>
<p>See [perlrun] for details on the command line arguments.</p>
283505
283505