|   |   |   | ||||
| Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. | 
|    | 
| 
 | |||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. | 
|  | Thread Tools | 
|  05-06-2003, 12:39 PM | #1 | 
| Confirmed User Join Date: Jul 2001 Location: See sig 
					Posts: 6,989
				 | 
				
				Find/replace in *nix
			 Anyone know how to batch find/replace in *nix including sub-folders?  I'm simply trying to replace a url in html files with another on mass. Wondering if grep will do it if so anyone know the correct syntax for doing so? Thanks | 
|   |           | 
|  05-06-2003, 12:43 PM | #2 | 
| CjOverkill Industry Role:  Join Date: Apr 2003 Location: Woldwide 
					Posts: 1,328
				 | the batching comand for text replace on text files is called "sed". The sintaxys is different depending on what kind of *nix are you running and what version of sed do you have installed. Try "man sed" and take the correct parameters. 
				__________________ CjOverkill Traffic Trading Script Free, secure and fast traffic trading script. Get your copy now   | 
|   |           | 
|  05-06-2003, 12:53 PM | #3 | 
| Confirmed User Join Date: Jul 2001 Location: See sig 
					Posts: 6,989
				 | Thanks - looking it up now. Couldn't see how grep would do it on reflection as although you can perform actions that doesn't include replacing stuff. | 
|   |           |