I have a script currently that goes through a directory and prints out every filename, filesize, filedate, etc. of all the files in the directory.
I want to basically put this information into an array as a "table". I want to do something like this...
file filename filesize filedate
0 fileA.doc 12 Kb 10/20/02
1 new-file.txt 25 Kb 02/15/03
I already have all the columns from each file, but what I don't know is how to put this information into an array, and then be able to print it out. So if I wanted this particular directory into an array and then I wanted to just print out all the file where the date is equal to yesterdays date lets say, I would access every "record" or value in the array and then compare yesterdays date with the date under filedate. I would then print out everything in the record.... Is there a way to do this?
I am not looking into placing it into a database because its temporary and will change everyday and everyminute.
Thanks to all in advance
I want to basically put this information into an array as a "table". I want to do something like this...
file filename filesize filedate
0 fileA.doc 12 Kb 10/20/02
1 new-file.txt 25 Kb 02/15/03
I already have all the columns from each file, but what I don't know is how to put this information into an array, and then be able to print it out. So if I wanted this particular directory into an array and then I wanted to just print out all the file where the date is equal to yesterdays date lets say, I would access every "record" or value in the array and then compare yesterdays date with the date under filedate. I would then print out everything in the record.... Is there a way to do this?
I am not looking into placing it into a database because its temporary and will change everyday and everyminute.
Thanks to all in advance