![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Multiple functions | amitrajvarma | Shell Programming and Scripting | 1 | 11-27-2007 08:21 AM |
| ksh functions | scriptingmani | Shell Programming and Scripting | 3 | 07-06-2007 04:15 AM |
| functions in | Raom | Shell Programming and Scripting | 6 | 07-21-2006 12:06 AM |
| Regarding functions | sendhilmani | Shell Programming and Scripting | 2 | 03-24-2006 01:40 AM |
| FTP functions | hzambra | High Level Programming | 3 | 05-03-2002 10:06 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Use of functions
Hi
my shell is tcsh can I have functions in my shell scripting? Is the below shell script correct. Can I have two functions and call one of them as required. ---------- echo "functions" f1 f1 () { echo "hello" } f2 () { echo "world" } ---------- Thanks Amit |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Quote:
(message too short) |
||||
| Google The UNIX and Linux Forums |