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).