I have some raw data which stored in txt files in a subdirectory. The
file names are actually in the form of "yyyymmdd.txt" which is the date
of these data collected. This date is also a data to be input into the
database.

I would like to go to this subdirectory and open all the files inside
and transfer the data into the database. How can I get all the names
of these files (preferably using vpf commands) so that I can open them
one by one and transfer in the data inside?

Re: How to get the names of the files in a subdirectory by Man-wai

Man-wai
Sun Aug 20 04:54:18 CDT 2006

> I would like to go to this subdirectory and open all the files inside
> and transfer the data into the database. How can I get all the names
> of these files (preferably using vpf commands) so that I can open them
> one by one and transfer in the data inside?

check out adir()

--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu 6.06) Linux 2.6.17.8
^ ^ 17:53:01 up 12 days 22:49 0 users load average: 1.07 1.04 1.00
news://news.3home.net news://news.hkpcug.org news://news.newsgroup.com.hk