Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Nov 1998 12:41:43 -0500
From:      "Steve Friedrich" <SteveFriedrich@Hot-Shot.com>
To:        "Alain G. Fabry" <fabry@panam.edu>, "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: find and replace within files.
Message-ID:  <199811111743.MAA02129@laker.net>

next in thread | raw e-mail | index | archive | help
On Wed, 11 Nov 1998 11:11:32 -0600, Alain 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?

Most experienced unix users, AFAIK, would use sed for this.  I believe
sed is fairly difficult to master quickly from the man page and I think
your need is immediate. I suggest getting a book on sed from O'Reilly,
see www.ora.com
Unix systems measure "uptime" in years, Winblows measures it in minutes.



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?199811111743.MAA02129>