Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Check number of files that were created before a date? Post 302624209 by isaacniu on Monday 16th of April 2012 03:14:18 AM
Old 04-16-2012
Check number of files that were created before a date?

Hi all,

In a directory I have a lot of files created in history. However do I check the number of files that were created before a designated date?

Thanks
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

How to list files with specific created date

Hi, Would like to ask, which command is used to list all the files for specific date (says 1st May) and its size, for all files (including its subdirectory), in a mounted NFS disk to HP-UX. I would like to check for the total files came into my disk on 1st May. Very much appreciating your... (2 Replies)
Discussion started by: Draculla
2 Replies

2. Solaris

command to list files that are created before some date

Can you please let me know the command to list the files that are created before some date, this we want to use for the following Eg: Move all the files that got created before 2006 to new folder in Solaris (3 Replies)
Discussion started by: csreenivas
3 Replies

3. UNIX for Dummies Questions & Answers

Display files created on particular date

hi , i am trying to display the files created on a particular date. I have tried using find .-mtime +n but these files are created on november 6th 2007 , so i'm not sure of what the 'n' value should be. And the number of files created on that particular day are more than 5000 so i have to make a... (6 Replies)
Discussion started by: amit_kv1983
6 Replies

4. Shell Programming and Scripting

Remove files which created date before 10 days on HP-UX

Hi All, Could you please let me know if there is any one can help to create a shell script to remove some files which is the created date for them greate than 10 days (sysdate-10) Please try to email me on email removed Thanks in advance, Murad (1 Reply)
Discussion started by: murad_fayez
1 Replies

5. Shell Programming and Scripting

Delete files created before specific date.

There is a system logging a huge amount of data and we need to delete some of the older logs .I mean the files that are created before one week from today. Here is a listing of files that are sitting there: /usr/WebSphere/AppServer/logs # ls -l -rw-r--r-- 1 root system 3740694 May... (5 Replies)
Discussion started by: moustafashawky
5 Replies

6. Shell Programming and Scripting

print out date of files last created??

Hello everyone, I have this script here: use Time::Local; opendir (D, $ARGV) or die "Cant open"; foreach $file (readdir D) { $path = "$ARGV/$file"; next if ! -T $path; $last_mod = (stat $path); ($sec,$min,$hour,$mday,$mon,$year,$wday) = localtime ($last_mod); printf "%-15s:... (4 Replies)
Discussion started by: new bie
4 Replies

7. Shell Programming and Scripting

Showing files that were created at a certain Date

Guys i am having a bit of a trouble finding the creation date of a file. What i have to do is to redirect the output of a command (which i believed was ls -l but this command shows only the Modification time) into a file, which will contain all the files that were created on a certain date, for... (2 Replies)
Discussion started by: jimas13
2 Replies

8. Shell Programming and Scripting

Copy files based on last created date

Hi, I have a requirement to copy files from a windows network drive to a Linux server using shell script based on the last created date. Ex: FileName CreatedDate/Time F1 05-01-2012 3:00 PM F2 05-01-2012 3:15 PM F3 05-01-2012 2:00 PM When i run the shell script... (1 Reply)
Discussion started by: Lee_10
1 Replies

9. UNIX for Dummies Questions & Answers

Find the count of files by last created date based on the given date range

My unix version is IBM AIX Version 6.1 I tried google my requirement and found the below answer, find . -newermt “2012-06-15 08:13" ! -newermt “2012-06-15 18:20" But newer command is not working in AIX version 6.1 unix I have given my requirement below: Input: atr files: ... (1 Reply)
Discussion started by: yuvaa27
1 Replies

10. Shell Programming and Scripting

Shell script to check current date file is created and with >0 kb or not for multiple directories

Hi All, I am new in scripting and working in a project where we have RSyslog servers over CentOS v7 and more than 200 network devices are sending logs to each RSyslog servers. For each network devices individual folders create on the name of the each network devices IP addresses.The main... (7 Replies)
Discussion started by: Pinaki
7 Replies
rcs2atfs(1)							    ShapeTools							       rcs2atfs(1)

NAME
rcs2atfs - convert RCS archives to AtFS format SYNOPSIS
rcs2atfs [-o outputfile] [ -q] archive ... rcs2atfs [-o outputfile] [ -q] -R directory ... DESCRIPTION
Rcs2atfs converts version histories from RCS archives to ShapeTools' AtFS format. It uses rlog(1) to get information about an RCS archive and issues shell commands (usually through a pipe directly to /bin/sh) to check out the RCS revisions and check the files in as AtFS ver- sions, trying to keep as many attributes as possible. The RCS archives are left unchanged. It is recommended to create a special directory with the name RCS for the RCS archives, but AtFS histories are always kept in a special directory AtFS. Rcs2atfs treats its arguments as names of RCS archives. These can be the names of the archive files themselves, ending with ,v, or the names of the files stored in the archives. If the -R option is given, the arguments are interpreted as directory names. Rcs2atfs recursively descends each directory tree (symbolic links are followed) and converts the RCS archives it finds. The correspondig AtFS archives are created where the RCS archives are found. Rcs2atfs tries to keep the revision numbers of the RCS history also as AtFS version numbers. This is impossible if an RCS history contains branches. In this case the revisions are saved as AtFS versions in the order of their check-in date. In either case the RCS revision number is kept as a symbolic name for the corresponding AtFS version, e.g. the AtFS version of RCS revision 1.2 will have the symbolic name ``r1.2''. Attributes that don't change: o author o log message o comment leader o description o symbolic names (with the exception of the additional symbolic name derived from the RCS revision number) Other attributes: mtime set to the check-in date of the RCS revision state The value of this attribute is given to the AtFS attribute RCSstate. If it has the value Exp, the state of the AtFS version will be saved, if Stab, it will be proposed, if Rel, it will be published. OPTIONS
-R (recursive) The arguments are treated as directories. Rcs2atfs recursively descends the directory tree (symbolic links are followed) and builds an AtFS archive for each RCS archive it finds. -o outputfile rcs2atfs writes shell commands to outputfile, not directly to /bin/sh, and no conversion is done. If this shell script is executed from the directory where rcs2atfs was invoked, the archives are converted as if rcs2atfs had been invoked without -o. The main use of this option is to investigate problems with the conversion of archives. -q (quiet) The names and revision numbers of converted archives are not echoed on standard output. EXAMPLES
The command rcs2atfs -R $HOME/development traverses the directory tree $HOME/development and converts every RCS archive in it into an AtFS archive. During the conversion, the name of every RCS archive and every revision number is echoed on standard output. rcs2atfs -q RCS/* Each archive in the RCS directory is converted to an AtFS history. The names and revision numbers of the converted archives are not echoed. SEE ALSO
sh(1), rcsintro(1), rcs(1), rlog(1), co(1), vcintro(1), save(1), vadm(1), utime(1) DIAGNOSTICS
Warnings -R flag not set, directory skipped If the -R flag is not set, directories given as arguments in the command line are ignored. locked version(s) exist A revision of the specified RCS history is locked. This is not really a problem, but perhaps rcs2atfs does not convert the most recent version of the file. branches exist, can't keep revision numbers If the RCS history contains branches, the numbers of AtFS versions cannot be the same as those of the corresponding RCS revisions. symbolic name to non-existent revision rlog has reported a symbolic name of a revision that does not exist in this archive. Probably this never happens (I don't know), but if, the symbolic name is ignored. Errors ATFS history exists, file skipped The specified file is already known to AtFS as a history or a busy version. This file will nor be converted. colon after symbolic name missing, file skipped revision not found, file skipped date not found, file skipped author not found, file skipped status not found, file skipped rlog information missing, file skipped These messages indicate problems with the rlog output, perhaps an old rlog version is used. (rcs2atfs works correctly with rlog version 5.5.) The specified file will not be converted. rlog command failed, file skipped For some unknown reason rlog returned a non-zero exit status. rlog should have provided an explanatory message. Fatal Errors popen to rlog command failed The rlog command could not be invoked. popen to shell failed The shell could not be invoked. no more core Rcs2atfs could not allocate enough memory. The amount of memory in your machine should be increased. Internal Errors Oops? Unknown reader state in readin_rcsfile! revision numbers corrupted number of revisions is wrong! You should never see these error messages. CAVEATS
If rcs2atfs visits the same RCS archive twice (e.g. because a symbolic link is followed to a directory which is also accessed directly), the check for existing AtFS archives may be done a second time before the conversion commands from the first visit are executed by the shell. This results in lots of annoying messages and duplicate AtFS versions of RCS revisions. To avoid this, make sure that rcs2atfs doesn't reach a directory twice. BUGS
Rcs2atfs is rather slow since it invokes a shell command for every action. Attribute citations in files are not translated from RCS to AtFS (e.g. ``$Header: ... $'' to ``$__Header$''). Rcs2atfs strongly relies on the format of rlog's output. Since I don't know any other rlog than our version (5.5), it may fail to work with other versions. Due to the lack of serious RCS archives, rcs2atfs isn't thoroughly tested yet. (Well, we use ShapeTools. :-) AUTHOR
Juergen.Nickelsen@cs.tu-berlin.de rcs2atfs-1.9 Tue Jun 29 16:38:28 1993 rcs2atfs(1)
All times are GMT -4. The time now is 02:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy