Date: Wed, 11 Nov 1998 11:26:10 -0600 From: mark <elroy@ghgcorp.com> To: "Alain G. Fabry" <fabry@panam.edu> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: find and replace within files. Message-ID: <3649C8B2.EF33DBCC@ghgcorp.com> References: <037401be0d96$58d82b90$5531d5c6@earth.coserve.org>
next in thread | previous in thread | raw e-mail | index | archive | help
check out sed. at least if I understand what you are asking. it can do that, although technically it is a Stream EDitor (thus the name). I have a feeling that this is not the preferred solution for you, but it is possible. markAlain G. Fabry wrote: > Is there any way in FreeBSD that I can search in files for certain lines and > replace them with something else? > f.e. search for Name and replace with Last_Name > This needs to be done thruogh a whole directory tree. > Can you refer me to a command which will do this? > Thanks, > > Alain > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3649C8B2.EF33DBCC>