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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Lock a file from being deleted? Darren Taylor Shell Programming and Scripting 3 03-10-2008 02:07 AM
display only file names dnat UNIX and Linux Applications 4 12-31-2007 02:27 PM
Reading file names from a file and executing the relative file from shell script anushilrai Shell Programming and Scripting 4 03-10-2006 01:25 AM
how can i restore a deleted file wojtyla Linux 2 02-20-2005 12:50 PM
retrieving a deleted file jyotipg UNIX for Advanced & Expert Users 2 01-04-2002 04:49 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-20-2006
Registered User
 

Join Date: Feb 2006
Posts: 4
Question Display file names that are being deleted

The print command lists the path of the file being found. I want the output as the file name along with the date that particular files were created i.e similar to a ls -l command.

I am using find to list all the files that satisfy the selection criteria and delete them using rm. Can I display all those file names along with the date of creation which were being deleted using rm

Thanks in advance
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-21-2006
Registered User
 

Join Date: Apr 2002
Location: Chesterfield, UK
Posts: 124
Try doing an ls -l of the file path before each rm
Reply With Quote
  #3 (permalink)  
Old 02-21-2006
Registered User
 

Join Date: Feb 2006
Location: Schenectady, NY
Posts: 130
find path selection-criteria -ls -exec rm {} \;
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:28 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0