ASK

Section: User Commands (1)
Updated: 7 November 1988
Index Return to Main Contents
 

NAME

ask - interactively select arguments  

SYNOPSIS

ask [ -s string ] argument ...  

DESCRIPTION

ask writes its arguments one at a time on standard error, and prompts for a reply. A response beginning with y or Y selects that argument to be printed to standard output, anything else rejects it.

ask is useful for interactively selecting arguments for a command from a wildcard specification.  

OPTIONS

-s
The argument following is the first part of each prompt.
 

EXAMPLE

Assume your directory contains the files a b c and d:

% cp `ask -s copy *` /dest
copy a? y
copy b?
copy c? y
copy d?

The result is that cp a c /dest is executed.  

AUTHOR

Ken Yap (University of Rochester)


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLE
AUTHOR

This document was created by man2html, using the manual pages.
Time: 07:09:36 GMT, December 12, 2024