Revision: 5155
                            
                                                            
                                    
                                        
Updated Code
                                    
                                    
                                                    
                        at February 18, 2008 11:48 by ches
                            
                            Updated Code
find . -name "*.html" -print0 | xargs -0 perl -p -i -e 's|\Qhttp://66.36.242.244/~olxhxlwq/\E|http://www.johnclarkprose.com/|g'
                            Revision: 5154
                            
                                                            
                                    
                                        
Initial Code
                                    
                                    
                                                            
                                    
                                        
Initial URL
                                    
                                    
                                
                                                            
                                    
                                        
Initial Description
                                    
                                    
                                                            
                                    
                                        
Initial Title
                                    
                                    
                                                            
                                    
                                        
Initial Tags
                                    
                                    
                                                            
                                    
                                        
Initial Language
                                    
                                    
                                                    
                        at February 15, 2008 14:02 by ches
                            
                            Initial Code
find . -name "*.html" -print0 | xargs -0 perl -p -i -e 's|\Qhttp://66.36.242.244/~olxhxlwq/\E|\Qhttp://www.johnclarkprose.com/\E|g'
Initial URL
Initial Description
\Q...\E perl quoting means no ugly escaping in the regex. find's -print0 with xargs -0 is the secret to handling files with spaces in their names.
Initial Title
Perl Search and Replace One-liner with xargs -0
Initial Tags
regex, Bash, replace, perl
Initial Language
Bash