i have to delete files which are older than 15 days or more except the ones in the directory Current and also *.sh files
i have found the command for files 15 days or more older
find . -type f -mtime +15 -exec ls -ltr {} \;
but how to implement the logic to avoid directory Current and also... (3 Replies)
Hi Frnds,
I have to list the files which are older than 7 days in the given directory.
it should consider only the files and should not show subdirectories.
Thanks,
Raja (3 Replies)
Hi Guys,
I am new to unix
I am looking for a script to delete files older than 7 days but i also want to exclude certain directories (like arch,log .....) and also some files with extensions
( like .ksh, .ch, ..............)
Thanks (1 Reply)
Hi All,
OS :- HP-UX wm5qa B.11.23 U ia64 1119805695 unlimited-user license
I need to search files older than 50 days. I've used following command in order to search desired files, I also discoverd, it's showing today's files as well. Do you have any clue with this ?
wmqa1> find .... (4 Replies)
Hi
I am facing problem in using this command,
mv `find /export/june/PURGEDATA*.txt -mtime +2 -exec ls {} \;` june/archive/
mv: Insufficient arguments (1)
Usage: mv f1 f2
mv f1 ... fn d1
mv d1 d2
Thank you in advance (2 Replies)
Hello,
I need to move all the files inside /XYZ (has multi-depth sub directories) that are older than 14 days to/ABC directory but with retaining the SAME directory structure.
for example:
/XYZ/1/2/3/A/b.txt should be moved as /ABC/1/2/3/A/b.txt
I know about find /XYZ -type f -mtime +14... (3 Replies)
Hello all,
I want to list the files older than 10 days. Currently am using
find ./ -mtime +10 -exec ls -ltr {} \;
command. But I want to execute the same command in 16 directories at a time and want an output asking to remove those file?
Please help me to design the script.
regards,
Ajay (3 Replies)
Hello all,
do you know any way i can i move folders and its content if folder is older than 1,5 days in bash?
I tried:
find /home/xyz/DATA/* -type d -ctime +1.5 -exec mv "{}" /home/xyz/move_data_here/ \;All i got was that Files from DATA /home/xyz/DATA/* ended messed up in... (1 Reply)
Discussion started by: ZerO13
1 Replies
LEARN ABOUT DEBIAN
sendinpaths
SENDINPATHS(8) InterNetNews Documentation SENDINPATHS(8)NAME
sendinpaths - Send Usenet Path: statistics via e-mail
SYNOPSIS
sendinpaths [-cdhn] [-k keep-days] [-r report-days] [address [address ...]]
DESCRIPTION
sendinpaths checks pathlog/path for ninpaths dump files, finds dump files generated in the past report-days days, makes sure they are valid
by running ninpaths on each one and making sure the exit status is zero, and passes them to ninpaths to generate a cumulative report. By
default, that report is mailed to the e-mail addresses configured at the beginning of this script (by default, only one address is
configured: <top1000@anthologeek.net>) in order to supply the TOP1000 project with useful statistics. See
<http://top1000.anthologeek.net/> for more information.
When finished, sendinpaths deletes all dump files in pathlog/path that are older than keep-days days.
For more information on how to set up ninpaths, see ninpaths(8).
OPTIONS -c When this flag is used, the report is also e-mailed, besides the default submission addresses or those given as command-line arguments,
to the newsmaster's address set at configure time.
-d Enables debug messages.
-h Gives usage information.
-k keep-days
After having processed dump files, sendinpaths removes those that are older than keep-days days. The default is 0, that is to say to
remove all dump files.
Setting keep-days to another value can be useful for debugging purpose because it permits to keep a few dump files.
-n Don't e-mail the report; instead, just print it to standard output. Don't delete old dump files.
-r report-days
Process dump files generated during the last report-days days. The default is 32, that is to say to process all the dump files that
have been generated during the last 32 days (if, of course, they have not been deleted yet by a previous run of sendinpaths according
to the value set by the -k flag).
address ...
E-mail the report to the mentioned address or addresses, instead of the default one. Several addresses can be used, separated by
whitespace. For instance, for two adresses:
sendinpaths pathsurvey@top1000.org top1000@anthologeek.net
HISTORY
sendinpaths was written by Olaf Titz <olaf@bigred.inka.de>.
$Id: sendinpaths.pod 9384 2011-12-25 20:57:03Z iulius $
SEE ALSO ninpaths(8).
INN 2.5.3 2012-06-15 SENDINPATHS(8)