![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| Multiple functions | amitrajvarma | Shell Programming and Scripting | 1 | 11-27-2007 11:21 AM |
| Use of functions | amitrajvarma | Shell Programming and Scripting | 1 | 11-23-2007 06:52 AM |
| functions in | Raom | Shell Programming and Scripting | 6 | 07-21-2006 04:06 AM |
| Regarding functions | sendhilmani | Shell Programming and Scripting | 2 | 03-24-2006 04:40 AM |
| FTP functions | hzambra | High Level Programming | 3 | 05-03-2002 02:06 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Yes - example
Code:
myfunction()
{
echo "$1 $2"
}
myfunction "This is parameter 1" " Another parameter"
myfunction 32 64
|
|
||||
|
Quote:
To return string use echo statement. Code:
myfunction()
{
echo "$1"
}
str=$( myfunction "This is parameter 1" " Another parameter")
echo $str
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|