The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 08-29-2001
akpopa akpopa is offline
Registered User
 

Join Date: Aug 2001
Location: South Carolina
Posts: 18
How do I get the last modified date of a file?

I am trying to load a group of files and their last dates modified into a text file that will in turn be used with SQL*Loader to load these files into Oracle. I am using a *.ksh script. I am getting the name of the file in by using the following:

for file_ext in 'cat loaddir.ext';
do
find $base_dir -name "*."$file_ext >> loaddir.list
done;

Where loaddir.ext contains the list of vaild file extensions.

Is there a way that I could load the timestamp of each different file at the same time I am loading the name?

Thanks,

Amber Taylor

Last edited by akpopa; 08-29-2001 at 09:37 AM.
Forum Sponsor