STScI Logo

countfiles stsdas.toolbox.imgtools


NAME · USAGE · DESCRIPTION · PARAMETERS · EXAMPLES · REFERENCES
BUGS · SEE_ALSO

NAME

countfiles -- Count how many files are in the input file template

USAGE

countfiles input

DESCRIPTION

Countfiles is a simple task to count how many input files are in the template. It works with wild card. Together with the task pickfile, it provides an intuitive alternative for scan in IRAF script writing.

PARAMETERS

input [string]
Input file template.
output [int]
Output parameter: number of files in the input string.

EXAMPLES

1. im> countfiles "a,b,c,d"

The output will be 4.

2. im> countfiles @list

3. im> countfiles *

REFERENCES

BUGS

SEE ALSO

pickfile, scan


Source Code · Package Help · Search Form · STSDAS