The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to cp files to dir,using routine? wrapster Shell Programming and Scripting 4 05-21-2008 07:41 PM
sub routine call sekar sundaram Shell Programming and Scripting 2 11-10-2005 05:30 PM
Need basic disk copy routine for AIX 3 tekmeister AIX 0 09-29-2005 08:29 PM
Routine Task being a Solaris Administrator Far UNIX for Dummies Questions & Answers 1 02-09-2005 07:19 AM
Entry Points Routine S.P.Prasad High Level Programming 9 10-21-2002 08:34 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-21-2008
Registered User
 

Join Date: Jan 2008
Posts: 183
how to cp files to dir,using routine?

hi all,

I wanted to know how we can copy files to dirs, through a routine and when the file and the dir are specified as parameters for that routine and explicitly called?

Eg: suppose i want to copy file1 to /tmp then

myproc()
{
.
.
}

myproc /path/file1 /tmp/
These parameters when passed to the myproc() ,file1 should be copied to /tmp

May i know how it can be done?
Forum Sponsor
  #2  
Old 05-21-2008
Moderator
 

Join Date: Feb 2007
Posts: 2,326
No duplicate or cross-posting, read the rules.

Proceed here:

how to cp files to dir,using routine?

Thread closed.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:56 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0