Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

getfilename(1) [linux man page]

getfilename(1)                                                General Commands Manual                                               getfilename(1)

NAME
getfilename - Ask the user to name a file in a given format SYNOPSIS
getfilename format-name file-name DESCRIPTION
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 func- tionality 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" SEE ALSO
mailto(1), metamail(1) BUGS
This is such a tiny program it might actually be bug-free, but I wouldn't bet on it. COPYRIGHT
Copyright (c) 1991 Bell Communications Research, Inc. (Bellcore) Permission to use, copy, modify, and distribute this material for any purpose and without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies, and that the name of Bellcore not be used in advertising or publicity pertaining to this material without the specific, prior written permission of an authorized representative of Bellcore. BELLCORE MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY OF THIS MATERIAL FOR ANY PURPOSE. IT IS PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. AUTHOR
Nathaniel S. Borenstein, Bellcore Release 1 getfilename(1)

Check Out this Related Man Page

getfilename(1)						      General Commands Manual						    getfilename(1)

NAME
getfilename - Ask the user to name a file in a given format SYNOPSIS
getfilename format-name file-name DESCRIPTION
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 func- tionality 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" SEE ALSO
mailto(1), metamail(1) BUGS
This is such a tiny program it might actually be bug-free, but I wouldn't bet on it. COPYRIGHT
Copyright (c) 1991 Bell Communications Research, Inc. (Bellcore) Permission to use, copy, modify, and distribute this material for any purpose and without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies, and that the name of Bellcore not be used in advertising or publicity pertaining to this material without the specific, prior written permission of an authorized representative of Bellcore. BELLCORE MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY OF THIS MATERIAL FOR ANY PURPOSE. IT IS PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. AUTHOR
Nathaniel S. Borenstein, Bellcore Release 1 getfilename(1)
Man Page

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to get the value of a variable which is having another value in environmental script?

Dear Folks, I am facing an issue in getting a value of a variable.Let me explain the scenario. I am having a list file say files.list in which I have mentioned 1 FILE1 2 FILE2 Then I am having an set_env.ksh in which I mentioned FILE1=/clocal/data/user/userdata.txt... (4 Replies)
Discussion started by: dinesh1985
4 Replies

2. Shell Programming and Scripting

PHP populate variable with function

Hi, I've a php scirpt that calls in an external class. The external class, myClass, has several public and private functions. There is one public function which derives a value that I want be able to bring it to the main php scirpt. Here is the code. ....snip.... include... (1 Reply)
Discussion started by: nitin
1 Replies

3. Shell Programming and Scripting

How to Removing a dot from a file name?

I need a script that will allow me to rename all of my files in subdir /FilesIn as follows: From kumc_835_111200.RMT.dat to kumc_835_111200RMT.dat kumc_835_111200.KMR.dat to kumc_835_111200KMR.dat .................etc How do I do that whithout doing a sed ... (10 Replies)
Discussion started by: mrn6430
10 Replies

4. Programming

Link array to class java

Hi, I need help to Link array from one class to another class Firstly CSVParser Class what it did is load csv file and store into array Secondly WarehouseItem where each record is store How can I get a list of array that I load to CSVParser Class and store them to WarehouseItem and... (0 Replies)
Discussion started by: guidely
0 Replies

5. AIX

Unix File name manipulation

I need a script that will raname the following file names that beging with 08078* in unix as follows: Rename 08078-08201103-H00044-CA.835 as follows: 08078-110820-H000440CA.835 Bascially it will do this: 1) Keep the first 6 positons. 2) Move the yr from the file name to be the... (4 Replies)
Discussion started by: mrn6430
4 Replies

6. Homework & Coursework Questions

Help with perl subroutines

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: This subroutine needs to check if there was a file name given on the command line. If so, return that. Otherwise... (1 Reply)
Discussion started by: yonkers062986
1 Replies

7. Shell Programming and Scripting

File Renaming and Moving

Hello, I need some help with a script. I have a file that I need to move and rename into the new directory. I am pretty new to shell scripting and have been trying to us awk with out success. The file I will be getting is based in this format... (2 Replies)
Discussion started by: cburgoyne
2 Replies

8. Shell Programming and Scripting

Assigning variable using script

Hi all, I have to write script to make my usual job easy. Basically it involve reading a output of following pattern: crab: ExitCodes Summary >>>>>>>>> 45 Jobs with Wrapper Exit Code : 0 List of jobs:... (10 Replies)
Discussion started by: emily
10 Replies

9. Shell Programming and Scripting

Autodeploy script

Hi All! I am managing databases on handful of servers and standardizing some of the scripts. In order to copy/deploy new version of script I have established passwordless SSH among all the servers and most importantly from my base server. I developed a simple script that should copy a given... (1 Reply)
Discussion started by: ridham
1 Replies

10. Shell Programming and Scripting

Sdiff doesn't try and compare to closest match

In the example below i would want the extensions to match. Is there any other utility or script to achieve this. Kindly help. Example: sdiff sourceFileNames targetFileNames 17021701P.blf | 17021901P.ibk 17021701P.chn | 17021901P.irk 17021701P.bmr | 17021901P.dyd 17021701P.dpf |... (7 Replies)
Discussion started by: jamilpasha
7 Replies