The UNIX and Linux Forums  

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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 08-27-2007
vats vats is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 10
Shell Script Required!

Hi people,

I am new to this forum. I have taken unix this semester in my college and i am new to it. I am finding shell scripting a bit hard and i need a little help.

I require a shell script to delete files that end as .bak , .BAK, #, ~ and files with the name core.The Script should accept a command a line argument the name of the starting directory in either absolute or relative notation. For example if the present working directory is /home and we wanted to process the directory /home/vats then the command line could be :
cleanup /home/vats or
cleanup vats or
cleanup ./vats
All of them should work.

Can anyone please help me...

Thanks
Vats

Last edited by vats; 08-28-2007 at 03:29 AM..