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
How to delete files with certain ext? tonyvirk UNIX for Dummies Questions & Answers 4 12-09-2007 03:57 PM
How to delete files ?? preethgideon UNIX for Dummies Questions & Answers 5 10-29-2007 04:51 AM
Delete files with 0kb mephisto UNIX for Dummies Questions & Answers 3 10-23-2006 11:45 AM
when I try to run rm on multiple files I have problem to delete files with space umen UNIX for Dummies Questions & Answers 1 09-20-2005 04:20 AM
I can't delete some files DISTURBED UNIX for Dummies Questions & Answers 4 08-01-2002 12:15 PM

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 11-29-2006
Pradeep.P. Pradeep.P. is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 2
To delete files

How to delete all the txt files from the current to all subdirectories ?
  #2 (permalink)  
Old 11-29-2006
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,957
Welcome to the forum !

Please use forum's SEARCH facility !!!
  #3 (permalink)  
Old 11-30-2006
srikanthus2002's Avatar
srikanthus2002 srikanthus2002 is offline
Registered User
  
 

Join Date: Sep 2006
Location: Can u guess...!
Posts: 160
try this it delets all files and derectory of the current directory.

Code:
rm -rf *
or

Code:
rm -rf /home/sri/kanth # deletes kanth directory(files and subdirectories too)
for more info read man page of rm command (man rm)
  #4 (permalink)  
Old 11-30-2006
aju_kup aju_kup is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 189
use

rm `find . -type f -name *.txt`
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 04:36 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