Hi,
My task to to delete files which are of previous months.
I have files named as follows *CCYYMMDD.xls. on a particular day i have delete previous months files
i.e in Dec i have delete all nov files which look like 200511DD.XLS
in Jan i have to delete all Dec files 200512DD.xls
... (7 Replies)
Hi,
I need to create a script which should delete all the log files which are 1 month old or older than that.
For ex:
Today's date -- > 09/30/2010
Directory --> /user/work/log/
Files-->
log.07182010 created on 07/18/2010
log.08182010 created on 08/18/2010
log.09182010 ... (4 Replies)
Hello All,
I am trying to come up with a shell script to count a specific word in a logfile on each day of this month, last month and the month before. I need to produce this report and email it to customer.
Any ideas would be appreciated! (5 Replies)
Hi All,
I need to find last two files for the month.
lets say there are following files in directory
-rwxr-xr-x 1 user userg 1596 Mar 19 15:43 c.txt
-rwxr-xr-x 1 user userg 1596 Mar 21 15:43 d.txt
-rwxr-xr-x 1 user userg 1596 Mar 22 15:43 f.txt
-rwxr-xr-x 1... (14 Replies)
Hi All,
I need to find all files other than first two files dates & last file date for month and month/year wise list.
lets say there are following files in directory
Mar 19 2012 c.txt
Mar 19 2012 cc.txt
Mar 21 2012 d.txt
Mar 22 2012 f.txt
Mar 24 2012 h.txt
Mar 25 2012 w.txt
Feb 12... (16 Replies)
Hello,
i`m looking for some way to add to some date an partial number of months, for example to 2015y 02m 27d + 2,54m
i need to write this script in php or bash or sh or mysql or perl in normal time o unix time
i`m asking or there are any simple way to add partial number of month to some... (14 Replies)
Hi,
I need all file names in a folder which has date >= 10th of last month,
Example
: files in folder
AUTO_F1_20140610.TXT
BUTO_F1_20140616.TXT
CUTO_F1_20140603.TXT
FA_AUTO_06012014.TXT
LA_AUTO_06112014.TXT
MA_AUTO_06212014.TXT
ZA_AUTO_06232014.TXT
Output:
AUTO_F1_20140610.TXT... (9 Replies)
Hi All,
How to get last month files. Ex : 1st Jan i have to get Dec 31 days files and on Feb 1st i have to get Jan 31 days files and on Mar 1st i have to get Feb 28 days files. Below are the example files with date and timestamp.
aaa.txt.timestamp
aaa.txt.timestamp
aaa.txt.timestamp
Please... (7 Replies)
Discussion started by: kiranparsha
7 Replies
LEARN ABOUT DEBIAN
metastore
metastore(1) General Commands Manual metastore(1)NAME
metastore - stores and restores filesystem metadata
SYNOPSIS
metastore ACTION [OPTION...] [PATH...]
DESCRIPTION
Stores or restores metadata (owner, group, permissions, xattrs and optionally mtime) for a filesystem tree. This can be used to preserve
the metadata in situations where it is usually not stored (git and tar for example) or as a tripwire like mechanism to detect any changes
to metadata. Note that e.g. SELinux stores its labels in xattrs so care should be taken when applying stored metadata to make sure that
system security is not compromised.
ACTIONS -c, --compare
Shows the difference between the stored and real metadata.
-s, --save
Saves the current metadata to ./.metadata or to the specified file (see --file option below).
-a, --apply
Attempts to apply the stored metadata to the file system.
-h, --help
Prints a help message and exits.
OPTIONS -v, --verbose
Causes metastore to print more verbose messages. Can be repeated more than once for even more verbosity.
-q, --quiet
Causes metastore to print less verbose messages. Can be repeated more than once for even less verbosity.
-m, --mtime
Causes metastore to also take mtime into account for the compare or apply actions.
-e, --empty-dirs
Also attempts to recreate missing empty directories. May be useful where empty directories are not tracked (e.g. by git or cvs).
Only works in combination with the apply option. This is currently an experimental feature.
-f <file>, --file <file>
Causes the metadata to be saved, read from the specified file rather than ./.metadata.
PATHS
If no path is specified, metastore will use the current directory as the basis for the actions. This is the recommended way of executing
metastore. Alternatively, one or more paths can be specified and they will each be examined. Later invocations should be made using the
exact same paths to ensure that the stored metadata is interpreted correctly.
AUTHOR
Written by David Hardeman <david@hardeman.nu>
May 2007 metastore(1)