getfilename(1)

getfilename1

Ask the user to name a file in a given format

Usage

getfilename format-name file-name

Overview

The getfilename program will ask the user for the name of a file in the specified format, and will copy that file to the file-name given as the second argument.

If this doesn't sound very useful by itself, you're right. However, this turns out to be all you need in order to add some useful functionality to mailcap-oriented programs such as mailto(1). For example, the following line in a mailcap file allows mailto to help the user include PostScript in outgoing mail:

application/postscript ; lpr -Pipa %s ; description="Include a Postscript File"; compose="getfilename Postscript %s"

Releases

Unchanged in 10 releases since Debian 1.1 (Buzz).

  1. 1.1–5.0

Bugs

This is such a tiny program it might actually be bug-free, but I wouldn't bet on it.

Author

Nathaniel S. Borenstein, Bellcore

From metamail 2.7-54 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.