Date: Thu, 10 Jul 2003 12:30:09 -0500 From: "Jack L. Stone" <jackstone@sage-one.net> To: freebsd-questions@freebsd.org Subject: Replacing string in multiple files Message-ID: <3.0.5.32.20030710123009.0135fe88@sage-one.net>
next in thread | raw e-mail | index | archive | help
Am running FBSD.4.8-R At times, I need to replace an existing string in a file that has the same name in all ~user accounts and know there must be a short script to do that and suspect it involves sed(1). However, had no luck getting it to work yet. Basically want to do this: - find same files in all ~users by same name "~users/myfile" - replace this ${string} with this ${string} in the above files - report list of above files modified successfully That's it. Script help appreciated (csh shells).... Thanks in advance for any suggestions! Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net jackstone@sage-one.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.20030710123009.0135fe88>