10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Is there a way via some bash script or just cmd to find duplicate directories?
i have main folders:
TEST1
TEST2
In folder TEST1 is some amount of same folders as in folder TEST2
can be this done? i tried fdupe but it only search for dupe files not whle dirs
thx! (8 Replies)
Discussion started by: ZerO13
8 Replies
2. Red Hat
Hi,
I need to delete (remove) only directories.
How to achieve this? Plz help (4 Replies)
Discussion started by: karthick nath
4 Replies
3. Shell Programming and Scripting
Hello All,
My shell script runs everyday to update certain database. Everytime the script runs it creates a directory, with "current date". These directories contain log and data files:
HOME_DIR/database_name/20120417/*
HOME_DIR/database_name/20120416/*... (6 Replies)
Discussion started by: ad23
6 Replies
4. Shell Programming and Scripting
Hi All,
I am trying to delete Files from a directory using the below command
find $/test/abc/xyz -mtime +30 -exec rm -f {} \;
The above command is deleting the files more than 30 days.
The problem is there are some subdirectories in xyz,
when i execute the above command its trying to delete... (3 Replies)
Discussion started by: ch33ry
3 Replies
5. Shell Programming and Scripting
Hi,
I have a requirement like,
I need to create the directory with date and time stap (i.e YYYYMMDDHMS) every day end need to delete the old directories which is 12 months old. I have tested with following script
cd /export/home/sbeeravo/; find . -type d -mtime +365 -exec rm -rf {} \;
... (2 Replies)
Discussion started by: ShirishaReddy
2 Replies
6. Shell Programming and Scripting
Hi
I have 10 directories.I want to delete all the dicrectories except the three recent directories based on timestamp.I am new to BASH can u help me? (1 Reply)
Discussion started by: newuser_25
1 Replies
7. Shell Programming and Scripting
Hi ,
I 'm trying to check if multiple directories exist on a server, if not create the missing ones and print " creating missing directory.
how to write this in a simple script, I have made my code complex
if ; then
taskStatus="Schema extract directory exists, checking if SQL,Count and... (7 Replies)
Discussion started by: ramky79
7 Replies
8. UNIX for Dummies Questions & Answers
How to delete all subdirectories and contents?
oh, and if they are hard linked? (1 Reply)
Discussion started by: t4st33@mac.com
1 Replies
9. UNIX for Dummies Questions & Answers
I have a script that deletes obselete users from /etc/passwd then moves their home directories to another location. After 30 days, I need to delete the home directories that were moved to the new location. I would appreciate any ideas on how to delete the directories after the 30 days? (2 Replies)
Discussion started by: munch
2 Replies
10. Shell Programming and Scripting
I need to make a copy of a directory keeping ownership, dates and links for all files intact. For that I'm using tar. Then I have to verify that the new directory and the old one are exactly the same (requirement is that the sums of all files are the same). The directory has many subdirectories and... (3 Replies)
Discussion started by: mmarino
3 Replies