The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to pass a parameter megh Shell Programming and Scripting 1 07-18-2008 03:39 AM
Pass parameter into script alfredo Shell Programming and Scripting 2 04-08-2008 10:40 PM
PASS parameter to AWK unisam UNIX for Dummies Questions & Answers 2 05-14-2004 10:51 AM
Pass Parameter to Another Script rvprod UNIX for Dummies Questions & Answers 4 04-05-2002 01:07 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 08-14-2008
ssuresh1999 ssuresh1999 is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 51
How to pass parameter to subroutine

I have something like
cp -p <dir>filename1.dat <dir2>filename1.dat

there are many other operations in it
I mean that filename1.dat will keep on changing
I need to write a subroutine so that i can pass filename1 or 2 or 3 .dat as parameter
Thanking you in advance
Any help wuld be appreciated
  #2 (permalink)  
Old 08-14-2008
vidyadhar85's Avatar
vidyadhar85 vidyadhar85 is offline Forum Staff  
Moderator(The Tutor)
  
 

Join Date: Jun 2008
Location: INDIA
Posts: 1,419
just type subroutine name and pass parameter as argument..
  #3 (permalink)  
Old 08-15-2008
ssuresh1999 ssuresh1999 is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 51
Thanks for your answer i it is working
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 02:39 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