The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-09-2008
dsrookie dsrookie is offline
Registered User
 

Join Date: Feb 2008
Posts: 8
Checking for a file in file pattern before deleting it

Hi,

I need a script where I have delete all the files of type abc*.* from the directory /lmn/opq (passed as parameter to script)

But I need to check if there is file of type abc*.* existing in the directory or not before I use the
rm abc*.*
command.

Thanks
Reply With Quote
Forum Sponsor