Jun 10, 2003 #1 zubnus Programmer Apr 22, 2003 8 US Hi All, I want to change a string say "old_fieldname" to "new_fieldname" in all the files where old_fieldname is present. do I have to use find command ??
Hi All, I want to change a string say "old_fieldname" to "new_fieldname" in all the files where old_fieldname is present. do I have to use find command ??
Jun 10, 2003 #2 vgersh99 Programmer Jul 27, 2000 2,146 US 1. yes, if your files are spread around the file system 2. no, if your files are located in the same directory vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+ Upvote 0 Downvote
1. yes, if your files are spread around the file system 2. no, if your files are located in the same directory vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+
Jun 10, 2003 Thread starter #3 zubnus Programmer Apr 22, 2003 8 US can you please tell me the command to do this . Thanks in Advance. Upvote 0 Downvote
Jun 10, 2003 #4 vgersh99 Programmer Jul 27, 2000 2,146 US which case - 1 or 2? I think a better forum for questions like this might be UNIX Scripting Forum. But... you'll have to investigate: find, sed, ex [and maybe awk]. It also might be helpful to see your sample text file. Good luck. vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+ Upvote 0 Downvote
which case - 1 or 2? I think a better forum for questions like this might be UNIX Scripting Forum. But... you'll have to investigate: find, sed, ex [and maybe awk]. It also might be helpful to see your sample text file. Good luck. vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+