From owner-freebsd-questions Mon Dec 2 4:18:54 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C07837B401 for ; Mon, 2 Dec 2002 04:18:53 -0800 (PST) Received: from mailhub.ihlas.net.tr (mailhub.ihlas.net.tr [213.238.128.250]) by mx1.FreeBSD.org (Postfix) with SMTP id 63FEB43EB2 for ; Mon, 2 Dec 2002 04:18:50 -0800 (PST) (envelope-from bmalik@ihlas.net.tr) Received: (qmail 94354 invoked from network); 2 Dec 2002 12:18:41 -0000 Received: from unknown (HELO ymmaslak) (213.238.150.220) by mailhub.ihlas.net.tr with SMTP; 2 Dec 2002 12:18:41 -0000 Message-ID: <012401c299fc$ed221f80$dc96eed5@ymmaslak> From: =?iso-8859-9?Q?Malik_B=FClent?= To: Subject: is there a "replace command" ? Date: Mon, 2 Dec 2002 14:18:30 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-9" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Freebsd4.x I have a file. I want to change some expressions with new ones For example a file touch /var/qmail/1 touch /var/qmail/2 touch /var/qmail/3 touch /var/qmail/4 touch /var/qmail/5 touch /var/qmail/6 I want to change "touch" with "rm" How can i replace a newones in stead of a lot of expressions in a file on FreeBSD ? Which command(s) do i have to use ? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message