BUGS · SEE_ALSO
pickfile -- Get the file name picked from the input file template
pickfile input index
Pickfile is a simple task to get the file name from the template. It works with wild card as well as subsection and group specifications. Together with the task countfiles, it provides an intuitive alternative for scan in IRAF script writing.
- input [string]
- Input file template.
- index [int]
- Which file in the template to be picked?
- output [string]
- Output parameter: name of the picked file.
1. Get the name of the 3rd file in the list name.lis where name.lis has the following lines:
abc def ghi jkl
im> pickfile @name.lis 3
The output will be "ghi".
2. im> pickfile *.d0h[1:100] 5