The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
Shell Script Required? Pls. help me ntgobinath Shell Programming and Scripting 22 05-29-2008 07:09 AM
Shell Script Required ntgobinath Shell Programming and Scripting 3 05-06-2008 01:04 PM
shell script required sethunath Linux 1 07-07-2007 05:04 AM
shell script required sethunath Shell Programming and Scripting 4 07-06-2007 03:39 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #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 02:29 AM..
  #2 (permalink)  
Old 08-27-2007
ghostdog74 ghostdog74 is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2006
Posts: 2,422
its hard yeah, but have you learnt anything yet from school? why don't you put up something first and the kind ppl here will guide you. If you have not started the lessons yet, why not get a Unix shell programming book from the library or somewhere and start reading..?
  #3 (permalink)  
Old 08-28-2007
vats vats is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 10
Reply!!

Thx for the reply mate!!!!the problem is that i have taken very hard subjects such as enterprise programming and client server architectures which has kept me busy throughout the semester with assignments so i didnt get time to study this because unix was one of the easier subjects at the start of the semester!!!Well its not now!!!!I am so preoccupied with other subjects that i am not gettin time....ni hav to submitt this assignment next monday...so if u cud help me tht wud be gr8....and i made a mistake with the directory so if i want to remove files in vats directory it shud be

cleanup /home/vats and not cleanup /home/foo

Sorry for the mistake...i have edited the post as well!!!
  #4 (permalink)  
Old 08-28-2007
ahmedwaseem2000 ahmedwaseem2000 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Bangalore
Posts: 219
Please refer to the rules here
Sponsored Links
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 03:15 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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