| Command to find files and update par prasana77 |
Tuesday April 8, 2008 11:47:30 AM |
Configuration: Windows XP Internet Explorer 6.0
Hello
There is not one command. you would need to use various commands either in a script ( batch file ) or on a single line taht takes the output from one function to the input of the next. There are many ways to do it. They all would involve some form of what you asked it to do. Search files by name, recursive. (some people put files listed in a new file to use as second part of input) Take those files and search for text string. Replace string with new string. see the man pages on functions and put together a plan. I think you can do it. |
Hi,
Try something like this : find /directory -name "test.txt' -exec sed 's/information/new_information/' {} \;;-))
JP - Eleveur de pingouins - Faites un geste pour l'environnement, fermez vos fenetres et adoptez un manchot. |
.
Command line search in linux, Find any file quickly. article: http://www.codetechnical.com/linux/search-for-a-file-in-linux.html . |