find /WMID/data/temp/TxTest/Dev/txStore -type d -mtime +1 | xargs rm -rf
This has exactly the same problem where the first directory found is the parent directory "/WMID/data/temp/TxTest/Dev/txStore" which we can tell from what actually happened had a timestamp older than one day.
The find command would have been better as:
The "*" ensures that we only look at the subdirectories. The "-prune" stops us descending the tree. Thus we only make the decision whether to delete the directory based on the criteria in the original post and only issue one "rm" per deletable tree.
The moral of this story is to test the "find" statement thoroughly before spawning powerful commands like "rm -rf".
Hi all,
how to write a script that will indentify the files in a directory which are 7 days old and delete those files.
Thanks in advance
Cheers
Arunava (8 Replies)
I have a directory that contains files. I would like the command that deletes all files that are over 30 days old. Delete files based on creation date and not modified. (2 Replies)
Hi..
Am using diff to compare 2 directories(A & B) and as ouput i get a list of files which are found only in directory B ( I used grep & sed to create the list).
Now I want to delete the files which are found only in dir B after 3 days.
Please help me with this.
Thanks
CoolAtt (7 Replies)
Dear all,
I have a directory /homes/zak in which I have a number of directories which are created on a daily basis
thus:
02-MAY-10
03-MAY-10
04-MAY-10
05-MAY-10
I want to script the clean up of these directories, so I only keep two days worth,
so for example anything over 2 days... (10 Replies)
Hi All
I want to remove the files with name like data*.csv from the directory older than 10 days.
If there is no files exists to remove older than 10 days, It should not do anything.
Thanks
Jo (9 Replies)
how do i remove sub directories of a directory and all files which are older than 7 days by a single command in AIX. pls help me.
I am using command as
#find /gpfs1/home/vinod/hpc/ -depth -type d -mtime +7 -exec rm -rf {} \;
so i want to delete all sub directories and all files from the... (1 Reply)
Will this work to delete files 30 days old in $backupDir or is there a better way to do it?
find $backupDir -type f -mtime +30 -exec rm {} \; (2 Replies)
Discussion started by: wyclef
2 Replies
LEARN ABOUT DEBIAN
groovyc
groovyc(1) General Commands Manual groovyc(1)NAME
groovyc - compiler for groovy source files
DESCRIPTION
usage: groovyc [options] <source-files> options:
--classpath <path>
Specify where to find the class files.
-d <arg>
Specify where to place generated class files.
-e,--exception
Print stack trace on error.
--encoding <encoding>
Specify the encoding of the user class files.
-F <flag>
-h,--help
Print a synopsis of standard options.
-j,--jointCompilation
Attach javac compiler to compile .java files.
-J <property=value>
--sourcepath <path>
Specify where to find the source files.
--temp <temp>
-v,--version
Print the version.
options:
--classpath <path>
Specify where to find the class files.
-d <arg>
Specify where to place generated class files.
-e,--exception
Print stack trace on error.
--encoding <encoding>
Specify the encoding of the user class files.
-F <flag>
-h,--help
Print a synopsis of standard options.
-j,--jointCompilation
Attach javac compiler to compile .java files.
-J <property=value>
--sourcepath <path>
Specify where to find the source files.
--temp <temp>
-v,--version
Print the version.
SEE ALSO groovy(1)AUTHOR
This manual page was generated using help2man and edited by Varun Hiremath <varun@debian.org>, for the Debian project (but may be used by
others).
December 2007 groovyc(1)