Date: Thu, 05 Mar 2009 07:19:07 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Kurt Buff <kurt.buff@gmail.com> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>, "Vasadi I. Claudiu Florin" <claudiu.vasadi@gmail.com> Subject: Re: the "yes" comand Message-ID: <49AF7CEB.90901@infracaninophile.co.uk> In-Reply-To: <a9f4a3860903041615g40627c32t8d965df823b85918@mail.gmail.com> References: <op.uqak1hn5flcvyi@da1-desktop-x64> <4ad871310903041609n1542132es793320cb9e0a28e2@mail.gmail.com> <op.uqak9wxuflcvyi@da1-desktop-x64> <a9f4a3860903041615g40627c32t8d965df823b85918@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 > <claudiu.vasadi@gmail.com> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49AF7CEB.90901>