Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

yes(1)  —  Commands

OSF

NAME

yes − Affirms repetitively

SYNOPSIS

yes [expletive]

DESCRIPTION

The yes command repeatedly outputs y, or the locale’s equivalent of a y, or, if specified, expletive.  (The LC_MESSAGES variable determines the locale’s equivalent of y or n (for yes/no queries)). 

yes is useful for providing continuous input to a program.  Terminate output by pressing the Interrupt key sequence. 

EXAMPLES

To delete all files in a directory (using the rm command) and automatically send an affirmative response to the request for confirmation, enter:

yes | rm -i ∗

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026