The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Remove lines, Sorted with Time based columns using AWK & SORT karthikn7974 Shell Programming and Scripting 1 05-10-2008 12:04 AM
Find and store files based on FileName and Modified Time edisonantus UNIX for Advanced & Expert Users 2 02-19-2008 02:25 PM
Remove files based on date hshapiro UNIX for Dummies Questions & Answers 4 12-09-2005 12:21 PM
Find files based on time budrito UNIX for Advanced & Expert Users 4 10-08-2004 06:18 AM
smitty, remove user, remove directory as well.. yls177 UNIX for Dummies Questions & Answers 2 11-11-2002 02:43 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-01-2007
HAA HAA is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 24
Error when find and remove directory based on time

Hi Experts,

Below command remove directory exactly but trying again to find the same directory and giving following error.
I would appreciate for your help friends.

find ./2* -type d -mtime +0 -exec rm -rf {} \;
find: 0652-081 cannot change directory to </home/busi/backup/200606>:
: A file or directory in the path name does not exist.
find: 0652-081 cannot change directory to </home/busi/backup/200607>:
: A file or directory in the path name does not exist.
find: 0652-081 cannot change directory to </home/busi/backup/200608>:
: A file or directory in the path name does not exist.

Thanks and Regards,
HAA
  #2 (permalink)  
Old 02-02-2007
srikanthus2002's Avatar
srikanthus2002 srikanthus2002 is offline
Registered User
  
 

Join Date: Sep 2006
Location: Can u guess...!
Posts: 160
can you show me the o/p of


Code:
find ./2* -type d

and

Code:
find ./2* -type d -mtime +0

then you come to know what is the problem of it
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:12 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0