How can I programmatically get a folders latest edit?
I have already written the following script:
#!/usr/bin/perl my @ls_command_result=qx(ls -l); my @the_folder=grep /folder_i_want/, @ls_command_result; print STDOUT "@the_folder";
Using this script i can get the latest edit date of the folder, but the problem is that I just get it as a string, but i will be needing to compare this outcome to other dates and therefore it would be vastly better to have it in the format of say, epoch second.
How would it be best to go about getting this information?