10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I've created 2 files
touch -t 201309101234 aa10
touch -t 201309111234 aa11
Exact 60 days before from today date is SEPT 12th . As per the following command as i gave +60 means the files which were created before sept12th should be deleted
find /etc/logs/*aa* -type f -atime +60... (5 Replies)
Discussion started by: smile689
5 Replies
2. Shell Programming and Scripting
hi every one. one of my friends has writen this script and send it to me. this script can find files that add-delete-modify and also send an alert by email
i'm not catch all part of it.
can anyone explain me how this work
#!/bin/bash
START="a.txt"
END="b.txt"
DIFF="c.txt"
mv ${START}... (4 Replies)
Discussion started by: nimafire
4 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I want to delete all the log files that was created on year 2008. My command is not working. Any idea?
find . -name '*.log' -mtime 1460 -exec ls -lt {} \;
Thank you. (2 Replies)
Discussion started by: samnyc
2 Replies
4. Shell Programming and Scripting
Hello All,
Can someone please help me out in creating the find command to search and delete files older than 1 days at a desired location.
Thanks in advance for your help. (3 Replies)
Discussion started by: Pandee
3 Replies
5. Shell Programming and Scripting
Hi all
i have a directory where it has files as shown below.Using find command how can i delete files which were modified more than 20 days ago and having the pattern jnhld15231 or jnhld15232.
find ./ -name "jnhld15231^" -type f -mtime +20 -exec rm {} \;
find ./ -name "jnhld15232^" -type f... (2 Replies)
Discussion started by: morbid_angel
2 Replies
6. Shell Programming and Scripting
How can I delete files for a particular date ?
I apologize in advance If there is solution please put the link.
Thanks, (5 Replies)
Discussion started by: jville
5 Replies
7. UNIX for Dummies Questions & Answers
hi all ,
i want to find and interactively delete all the files having size greater than 20 bytes using "find" and other commands..... (8 Replies)
Discussion started by: sonu_pal
8 Replies
8. Solaris
Hey guys
I am into strange problem where I have to integrate cluster and EMC storage for that I have to take 1 NIC port from default nic port present on the server and 3 NIC port from quad card which is also present on the server. Right now I have connect all ports to a network for testing... (6 Replies)
Discussion started by: amity
6 Replies
9. UNIX for Dummies Questions & Answers
hi , let's assume i have a file that is located in the l*** directory and this file's name is t****_***s.php , how can i find this file and delete it using one single command ????? (3 Replies)
Discussion started by: wewee
3 Replies
10. Solaris
I am using the following Command to delete Directory with contents. But this command is deleting inside files only not directories. is there any change need in my command?
find -type f -mtime +3 -exec rm -r {} \;
Thanks (3 Replies)
Discussion started by: bmkreddy
3 Replies