subrouting in scripting ???

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting subrouting in scripting ???
# 1  
Old 06-14-2002
subrouting in scripting ???

Dear all

is sripting got subrouting feature? let's see:

if [ $a -eq 1 ]
then (program will jump to the subrouting)


Best regds
# 2  
Old 06-14-2002

You can call functions, with or without arguments, like in (ksh syntax):

myFunction() {
banner $p
echo before
myFunction "Hi"
myFunction "there!"
echo after
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help in scripting

Hi, We have a requirement,client will post the file into ftp server with name as "prior-product-purchaseproductpurchase001_20150608.txt".One copy should be in this FTP server. After that we need to eliminate some part of the string in the filename "prior-product-purchase" and post the filename... (6 Replies)
Discussion started by: lkeswar
6 Replies

2. UNIX for Dummies Questions & Answers

Need help in scripting

Hi, We have a .txt file and we need to read that file and get updated count value in that .txt file. content in .txt file: Welcome messages are deployed. Updates : 334 The output which we want is the numeric figure 334. Could you please help me the command to get the value. Thx in... (3 Replies)
Discussion started by: kirankumar
3 Replies

3. Web Development

Perl scripting or shell scripting?

i am going to study any one of the scripting languages mentioned above(shell 0r perl scripting) . Which is having more scope for a fresher? (1 Reply)
Discussion started by: Anna Hussie
1 Replies

4. What is on Your Mind?

Shell Scripting vs Perl scripting

Gents, I have been working in a Solaris/Unix environment for about 9 months. I took some linux classses online before getting the job. But, I am not very good at scripting. I want to learn how to script. Do you think that I should start with Shell scripting or Perl? I wanted to continue with... (2 Replies)
Discussion started by: Pouchie1
2 Replies

5. Android

Android Scripting Environment: Shell Scripting and Android

I just upgraded to Android 2.2 from 2.1. The GPS issue that was troublesome in 2.1 seems to have been fixed. Some of web browsing seems faster, but it could just be my connection is better today ;) Flash works in some browsers but not very good and it is too slow for Flash apps designed for... (0 Replies)
Discussion started by: Neo
0 Replies

6. What is on Your Mind?

Shell scripting vs Perl scripting

Hi all, I would like to start developping some good scripting skills. Do you think it would be best to start with shell scripting or Perl? I already got a fundation, really basics, in perl. but I am wondering what would be best to be good at first. Can you please help me determine which one to... (14 Replies)
Discussion started by: Pouchie1
14 Replies

7. Shell Programming and Scripting

Call Shell scripting from Perl Scripting.

Hi How to call a shell scripting through a Perl scripting? Actually I need some value from Shell scripting and passes in the Perl scripting. So how can i do this? (2 Replies)
Discussion started by: anupdas
2 Replies

8. Shell Programming and Scripting

Help with scripting

I have 2 files with a common parm - Jobname File 1 0507 1202 JOBA 0507 1302 JOBB 0507 1452 JOBC 0507 1552 JOBA 0507 1553 JOBA File2 JOBA abcdefg server4 JOBB defghij server22 JOBC vwxyz12 server55 I would like to take each line from File1 and match the jobname with the jobname in... (14 Replies)
Discussion started by: Northerner
14 Replies

9. Shell Programming and Scripting

difference between AIX shell scripting and Unix shell scripting.

please give the difference between AIX shell scripting and Unix shell scripting. (2 Replies)
Discussion started by: haroonec
2 Replies

10. Shell Programming and Scripting

scripting guru's pls help me with scripting on AIX

can someone pls help me with the script for a files coming from one system to a particular directory and i want to write a script to move those files to another directory on different system by renaming the files... pls someone help me on this... thanking in anticipation.... (1 Reply)
Discussion started by: thatiprashant
1 Replies
Login or Register to Ask a Question