Sponsored Content
Top Forums Shell Programming and Scripting Find directories only and delete them created 3 days before Post 302437874 by needyourhelp10 on Friday 16th of July 2010 11:22:11 AM
Old 07-16-2010
Find directories only and delete them created 3 days before

Hello

I have some directories and files created under /export/local/user

I would like to delete directories only under /export/local/user, created before 3 days

Can someone help me with command to do this task?

Thanks
 

10 More Discussions You Might Find Interesting

1. HP-UX

Command for delete the directories which are older than 7 days

Hi, My requirement is need to delete the directories (Including files also) which are older than 7 days. So I used below command in one script (script takes 2 input parameters) #$1 - Path of the directory from where we have to delete the directories.# #$2 - Number of days older... (1 Reply)
Discussion started by: sridhar sivakot
1 Replies

2. Shell Programming and Scripting

Delete files from sub-directories over 7 days

Can any one please help me in deleting all the Files over 7 days from sub-directories A, B, C... Top-Directory Sub-Directory-A File-1 File-2 ..... File-n Sub-Directory-B File-1 File-2 ..... File-n Sub-Directory-C File-1 ... (1 Reply)
Discussion started by: sureshcisco
1 Replies

3. Red Hat

Find files older than 30 days in directories and delete them

Hi, I have dummies questions: My script here can find the files in any directories older than 30 days then it will delete the files but not the directories. I would like to also be able to delete the directories that hold old files more than 30 days not just the files itself. find . -type f... (2 Replies)
Discussion started by: lamoul
2 Replies

4. Shell Programming and Scripting

Using cron to delete directories 90 days old

We use Solaris 10 x86 and I want to use a cron job to remove directories +90 old. Currently I have the command below but it only cleans the files and keeps the directory. What am I doing wrong? /opt/tesk/batch/kit/archive/* -mtime +90 -exec rm -r {} \: Thank you (3 Replies)
Discussion started by: oh-daa
3 Replies

5. Shell Programming and Scripting

Find the directory modified/created before 4 days

Hi, I have an application which creates some directories while running. I want to delete these directories which are 4 days older. i tried find . type d -mtime +1 -print And it is working fine.. but find . type d -mtime +4 -print is not giving any results which are 4 days... (6 Replies)
Discussion started by: Tuxidow
6 Replies

6. UNIX for Dummies Questions & Answers

How to find files created some days before?

HI, I have 2 questions. 1> Is there any code to see files that created some day or some time before in a directory??? 2> how or where i will find the last exit status of a process?? thanks (6 Replies)
Discussion started by: jyotidas
6 Replies

7. Shell Programming and Scripting

Find unix file created how many days ago?

i want to find unix file created how many days ago? (4 Replies)
Discussion started by: utoptas
4 Replies

8. Shell Programming and Scripting

what is the find to command to find the files created last 30 days

what is the find to command to find the files created last 30 days (5 Replies)
Discussion started by: rajkumar_g
5 Replies

9. Shell Programming and Scripting

Find directories that are not used for 500 days

How to list the directories that are not acessed for more than 500 days? i used find in the following way find . -type d -atime +500 -exec du -sh {} \; but it is listing all the sub direcories of the parent directories which satisfy above condiion.I would like to get just name of the... (1 Reply)
Discussion started by: sajuatl
1 Replies

10. Shell Programming and Scripting

Find the sum of files created 5 days before

Hi, I want to find the sum of all the files created 5 days ago and store it in a variable. (os is HP-UX) can this be extracted from ls -l Is there any other way of getting the sum of all the files created (4 Replies)
Discussion started by: bang_dba
4 Replies
dxfileshare(8)						      System Manager's Manual						    dxfileshare(8)

NAME
dxfileshare - Exports local directories and mounts directories from the network SYNOPSIS
/usr/bin/X11/dxfileshare DESCRIPTION
Use the File Sharing application, dxfileshare, to: Export (or share) local UNIX directories to the network Stop exporting UNIX local direc- tories to the network Specify which directories mounted from the network are to be remounted every time the system is rebooted, that is, add an entry to the /etc/fstab file Add, change, or delete NFS entries from the /etc/exports file Share local UNIX directories with a per- sonal computer (PC) when Advanced Server for UNIX is installed on your system Display local directories that are shared (exported) with the network Display network mounts (directories that can be mounted from the network) The File Sharing application can also be invoked from the CDE Application Manager from the following categories: Application Group: System_Admin System Admin Subgroup: Daily Admin Online help is available for the File Sharing application by clicking on any Help button or using the Help pull-down menu. RESTRICTIONS
You must have root privileges to use certain features of File Sharing. Namely, the ability to export (or share) a directory or to modify the properties of a directory that is already being exported. You must have Advanced Server for UNIX installed on your system to share local directories with PCs. FILES
Defaults that are shared by the graphical and command line user interface. File Sharing uses the same file as the Host Manager application. File Sharing application File Sharing help volume Directory containing File Sharing application icons Application defaults file that sets the default values for the X resources File Sharing message catalog Message catalog containing File Sharing location IDs for on-item help i18n_motif_shared_text.cat Message catalog containing application-independent messages i18n_motif_shared_text_LocIds.cat Message catalog containing application-independent location IDs for on-item help SEE ALSO
Commands: X(1X), automount(8), bcheckrc(8), mount(8), mountd(8), showmount(8), umount(8) Functions: getfsstat(2), getmntinfo(3), getmntinfo_r(3), mount(2), mount(2sv), umount(2), umount(2sv), umount(3) Files: exports(4), fstab(4), mountdtab(4) Tru64 UNIX System Administration ASU Installation and Administration Guide ASU Concepts and Planning Guide dxfileshare(8)
All times are GMT -4. The time now is 10:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy