Sponsored Content
Full Discussion: File last modified
Top Forums Programming File last modified Post 41787 by Perderabo on Tuesday 14th of October 2003 12:56:46 PM
Old 10-14-2003
Use the ls command on the file in question.

ls -l file # show mtime
ls -lc file # show ctime
ls -lu file # show atime
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

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... (2 Replies)
Discussion started by: akpopa
2 Replies

2. UNIX for Dummies Questions & Answers

who modified my file!!

Hi EVERYONE!!... Just a simple (yet critical from my perspective) doubt... I would like to know who had edited my file.. when I use ls -l command, I see my ID.. but when I edit using some other ID, I had expected that ID to be shown.. but still ls -l shows my ID only.. So, is there any... (4 Replies)
Discussion started by: mohanprabu
4 Replies

3. UNIX for Dummies Questions & Answers

how to retrieve original contents of a modified file (modified using vi)

Made changes to a file using vi editor and saved those changes now realised that the changes are not required How can I get the previous version of the file.i.e the one which was there on which I had made changes (3 Replies)
Discussion started by: novice100
3 Replies

4. UNIX for Dummies Questions & Answers

Delete the last modified file

Hi All, I have the following script to delete the last modified file in a directory. #!/bin/ksh if file in $(ls -t /home/KOP/Purge | head -1) then rm -f $file fi But I keep getting the error 0653-901 Cannot get file status Any suggestions or comments as to where I'm getting... (1 Reply)
Discussion started by: kingofprussia
1 Replies

5. Shell Programming and Scripting

Last modified file in 2 or more directories

Hi, Is there any simple way to get the last modified file in a set of 2 or more directories? This should return one file only (not 1 file per directory) Thanks for your help (4 Replies)
Discussion started by: m69w
4 Replies

6. Shell Programming and Scripting

How many days since a file was modified?

I am trying to write a script to backup my laptop to a NAS drive using rsync. I want the backup to be done, only if it has been more than a week since my last backup. Each time the rsync command executes, I also create a file backuptime.txt file, with the time at which the script completed the... (1 Reply)
Discussion started by: anandjayaraman
1 Replies

7. Shell Programming and Scripting

How to get a filename modified by attaching modified timestamp

Hi, I want to modify a filename in AIX by attaching the last modified timestamp. I want the timestamp completely in numerical format (eg:200905081210. yr-2009, mnth - 05, date -08, hr - 12, mins - 10). For example if the filename is a.log and it was modified on April 6th 2008 at 21.00. I... (16 Replies)
Discussion started by: Ruks
16 Replies

8. Shell Programming and Scripting

changing a file when the inode modified time of the other file changes

i have a requirement where i needed to change variable values in a properties file(first file) whenever there is change to Release details file(second file). My question is do i have to create a daemon process that always checks the modified time/inode change of the second file and then change the... (1 Reply)
Discussion started by: saikiran_1984
1 Replies

9. Shell Programming and Scripting

Script to check for the file existence, if file exists it should echo the no of modified days

Hi, I am looking for a shell script with the following. 1. It should check whether a particular file exists in a location #!/bin/sh if ; then echo "xxx.txt File Exists" else echo "File Not Found" fi 2. If file exists, it should check for the modified date and run a command... (2 Replies)
Discussion started by: karthikeyan_mac
2 Replies

10. Shell Programming and Scripting

How to find a file modified more than once

Hi All, How to find a file modified more than once.... Thanks in advance (2 Replies)
Discussion started by: kmsekhar
2 Replies
DBM::Deep::Engine::File(3pm)				User Contributed Perl Documentation			      DBM::Deep::Engine::File(3pm)

NAME
DBM::Deep::Engine::File - engine for use with DBM::Deep::Storage::File PURPOSE
This is the engine for use with DBM::Deep::Storage::File. EXTERNAL METHODS
new() This takes a set of args. These args are described in the documentation for "new" in DBM::Deep. INTERNAL METHODS
The following methods are internal-use-only to DBM::Deep::Engine::File. read_txn_slots() This takes no arguments. This will return an array with a 1 or 0 in each slot. Each spot represents one available transaction. If the slot is 1, that transaction is taken. If it is 0, the transaction is available. write_txn_slots( @slots ) This takes an array of 1's and 0's. This array represents the transaction slots returned by "read_txn_slots()". In other words, the following is true: @x = read_txn_slots( write_txn_slots( @x ) ); (With the obviously missing object referents added back in.) get_running_txn_ids() This takes no arguments. This will return an array of taken transaction IDs. This wraps "read_txn_slots()". get_txn_staleness_counter( $trans_id ) This will return the staleness counter for the given transaction ID. Please see "STALENESS" in DBM::Deep::Engine for more information. inc_txn_staleness_counter( $trans_id ) This will increment the staleness counter for the given transaction ID. Please see "STALENESS" in DBM::Deep::Engine for more information. get_entries() This takes no arguments. This returns a list of all the sectors that have been modified by this transaction. add_entry( $trans_id, $location ) This takes a transaction ID and a file location and marks the sector at that location as having been modified by the transaction identified by $trans_id. This returns nothing. NOTE: Unlike all the other _entries() methods, there are several cases where "$trans_id != $self->trans_id" for this method. reindex_entry( $old_loc, $new_loc ) This takes two locations (old and new, respectively). If a location that has been modified by this transaction is subsequently reindexed due to a bucketlist overflowing, then the entries hash needs to be made aware of this change. This returns nothing. clear_entries() This takes no arguments. It will clear the entries list for the running transaction. This returns nothing. _write_file_header() This writes the file header for a new file. This will write the various settings that set how the file is interpreted. _read_file_header() This reads the file header from an existing file. This will read the various settings that set how the file is interpreted. _apply_digest( @stuff ) This will apply the digest methd (default to Digest::MD5::md5) to the arguments passed in and return the result. _add_free_blist_sector( $offset, $size ) _add_free_data_sector( $offset, $size ) _add_free_index_sector( $offset, $size ) These methods are all wrappers around _add_free_sector(), providing the proper chain offset ($multiple) for the sector type. _add_free_sector( $multiple, $offset, $size ) _add_free_sector() takes the offset into the chains location, the offset of the sector, and the size of that sector. It will mark the sector as a free sector and put it into the list of sectors that are free of this type for use later. This returns nothing. NOTE: $size is unused? _request_blist_sector( $size ) _request_data_sector( $size ) _request_index_sector( $size ) These methods are all wrappers around _request_sector(), providing the proper chain offset ($multiple) for the sector type. _request_sector( $multiple $size ) This takes the offset into the chains location and the size of that sector. This returns the object with the sector. If there is an available free sector of that type, then it will be reused. If there isn't one, then a new one will be allocated. ACCESSORS The following are readonly attributes. o byte_size o hash_size o hash_chars o num_txns o max_buckets o blank_md5 o data_sector_size o txn_bitfield_len The following are read/write attributes. o trans_id / set_trans_id( $new_id ) o trans_loc / set_trans_loc( $new_loc ) o chains_loc / set_chains_loc( $new_loc ) _dump_file() This method takes no arguments. It's used to print out a textual representation of the DBM::Deep DB file. It assumes the file is not- corrupted. perl v5.14.2 2012-06-24 DBM::Deep::Engine::File(3pm)
All times are GMT -4. The time now is 07:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy