Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP!!!

Status
Not open for further replies.

sergelaurent

Technical User
May 30, 2005
52
FR
I am trying to open a directory. Can someone tell me which command to use?
 
If you want to read the contents of a directory use the "glob" command.

It returns a list of files and sub directories. Information on the files can be obtained with the file... set of functions (e.g. file isfile <fileName> or file isdirectory <fileName>)

Cheers,
Tobi
 
...but remember, glob returns a single word (the list of file names matched).

If you need to execute something on each argument in the returned file list, preceed the "exec" with the eval cmd.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top