10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
2. AIX
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)
Discussion started by: vinodkmpal
1 Replies
3. Shell Programming and Scripting
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)
Discussion started by: rajeshjohney
9 Replies
4. Shell Programming and Scripting
Hi
How do I remove a directory which are some days old .
For Ex :
$ cd /WMID/data/temp/TxTest/Dev/txStore
$ ls -ltr
total 0
drwxr-xr-x 3 wmethods wmapp 80 Jul 21 03:36 0AE445C4
drwxr-xr-x 3 wmethods wmapp 80 Jul 21 04:00 0AE44664
drwxr-xr-x 3 wmethods... (6 Replies)
Discussion started by: leo76
6 Replies
5. Shell Programming and Scripting
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)
Discussion started by: coolatt
7 Replies
6. Shell Programming and Scripting
i want to delete three days from system date ... date -3 (4 Replies)
Discussion started by: r_t_1601
4 Replies
7. UNIX for Dummies Questions & Answers
Hi
Can u please tell me how to delete last 10 days logs .. (9 Replies)
Discussion started by: pb18798
9 Replies
8. Shell Programming and Scripting
Hi,
I would like to list latest 2 days, 3 days or 4 days,etc of files in the directory...
how? is it using ls? (3 Replies)
Discussion started by: happyv
3 Replies
9. UNIX for Dummies Questions & Answers
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)
Discussion started by: GEBRAUN
2 Replies
10. UNIX for Dummies Questions & Answers
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)
Discussion started by: arunava_maity
8 Replies