From owner-freebsd-questions@FreeBSD.ORG Thu Mar 5 07:19:27 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED98B1065670 for ; Thu, 5 Mar 2009 07:19:27 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 679DC8FC15 for ; Thu, 5 Mar 2009 07:19:27 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id n257JEBn030520; Thu, 5 Mar 2009 07:19:22 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.2 smtp.infracaninophile.co.uk n257JEBn030520 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1236237562; bh=WFcMxEEOcQZKjz1+MQ24Q5u5ZOwm5PfM6o9NhIk5MC8=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<49AF7CEB.90901@infracaninophile.co.uk>|Date:=20Thu ,=2005=20Mar=202009=2007:19:07=20+0000|From:=20Matthew=20Seaman=20 |Organization:=20Infracaninophile |User-Agent:=20Thunderbird=202.0.0.19=20(X11/20090218)|MIME-Versio n:=201.0|To:=20Kurt=20Buff=20|CC:=20"Vasadi=2 0I.=20Claudiu=20Florin"=20,=20=0D=0A=20" freebsd-questions@freebsd.org"=20|S ubject:=20Re:=20the=20"yes"=20comand|References:=20=09<4ad871310903041609n1542132es793320cb9e0a28 e2@mail.gmail.com>=09=20|In-Reply-To :=20| X-Enigmail-Version:=200.95.6|Content-Type:=20multipart/signed=3B=2 0micalg=3Dpgp-sha256=3B=0D=0A=20protocol=3D"application/pgp-signat ure"=3B=0D=0A=20boundary=3D"------------enig47C097CCBBFC87EBE82407 30"; b=CVYdpfOgUAg0eNnxlx3FH842Vaab0NkpcLvjoKts45kx+l7mKyIPMpn1ZDM+wNZtG 0dlKHjCaILJQ/p+/1P3yvMVCjt0eimT/jT9VxdJpa83QVrScKHBPwDIc67AUEjGonB XKQ+nH0gpfZeoex4cbknBbH1yZaea6GLdeil+djk= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <49AF7CEB.90901@infracaninophile.co.uk> Date: Thu, 05 Mar 2009 07:19:07 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.19 (X11/20090218) MIME-Version: 1.0 To: Kurt Buff References: <4ad871310903041609n1542132es793320cb9e0a28e2@mail.gmail.com> In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig47C097CCBBFC87EBE8240730" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (smtp.infracaninophile.co.uk [IPv6:::1]); Thu, 05 Mar 2009 07:19:22 +0000 (GMT) X-Virus-Scanned: ClamAV 0.94.2/9070/Thu Mar 5 04:32:34 2009 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: "freebsd-questions@freebsd.org" , "Vasadi I. Claudiu Florin" Subject: Re: the "yes" comand X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Mar 2009 07:19:28 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig47C097CCBBFC87EBE8240730 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Kurt Buff wrote: > On Wed, Mar 4, 2009 at 16:06, Vasadi I. Claudiu Florin > wrote: >> Well , I noticed that, but it's a bit odd now isn't it. I mean, what's= the >> sense of having some darn letter printer out forever ? I found it kind= of >> silly If you ask me. >=20 > But, incredibly useful if you actually write shell scripts - many > programs want a 'y' for input from the stdin, and this will do that > for you. Here's an example. When upgrading FreeBSD, especially over a large delta= in version numbers, you will frequently need to delete old files etc. tha= t are no longer part of the base system. You are provided with a mechanism= to do that, viz: # cd /usr/src # make check-old=20 {prints out all old files, directories and libraries to be deleted}= # make delete-old {prompts you to delete anything apart from shlibs which it won't to= uch} However 'make delete-old' will ask you whether you want to delete each and every individual file, which is tedious. If you decide from your inspection of the 'make check-old' output that you don't want any of the old files, you can just run: # yes | make delete-old Job done. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig47C097CCBBFC87EBE8240730 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkmvfPEACgkQ8Mjk52CukIykMACfQ0Nd7DS4msSJafPXuDsrp3P1 RnYAn1A1ZsAk4SkpITsqbAM/FlO+3z+4 =p0IG -----END PGP SIGNATURE----- --------------enig47C097CCBBFC87EBE8240730--