Snippet Name: Inline search and replace
Description: Super fast recursive search and replace one-liner.
Comment: (none)
Language: PERL
Highlight Mode: PERL
Last Modified: March 05th, 2009
|
#!/usr/bin/perl
perl -pi -w -e 's/SEARCH/REPLACE/g;' *.php
# -e means execute the following line of code.
# -i means edit in-place
# -w write warnings
# -p loop
|