09-16-2015
I made a stupid mistake
Thank you.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I need to pass a parameter to a function in a script. My parameter is a string. When I display the parameter within my function, I only get the first word from string I pass in.
How can I make the function receive the whole string (and not terminate at the first space it encounters)?.
part of... (2 Replies)
Discussion started by: fastgoon
2 Replies
2. Shell Programming and Scripting
Hi, i have a question:
i build this function:
function WriteLog {
....
...
print $*
print $* >> FileLog
....
....
}
the function are called with this sintax:
.....
..... (8 Replies)
Discussion started by: ZINGARO
8 Replies
3. Shell Programming and Scripting
Passing a array to a function, a basic feature in modern language, seems to be only possible in KSH. Not in BASH. Depite all my efforts I couldn't come to a solution. See the following examples:
It works perfectly in KSH:
#!/usr/bin/ksh
function print_array {
# assign array by indirect... (3 Replies)
Discussion started by: ripat
3 Replies
4. Shell Programming and Scripting
Hi All,
Calling a function with one argument and storing the return value in a shell script is as below:( so far I know)
value="`fun_1 "argument1"`"
Its working perfectly for me.
Can u help me with passing more than one argument and storing the return value
Thnaks in advance
JS (1 Reply)
Discussion started by: jisha
1 Replies
5. Shell Programming and Scripting
Hi ,
I have three funcions f1, f2 and f3 .
f1 calls f2 and f2 calls f3 .
I have a global variable "period" which i want to pass to f3 .
Can i pass the variable directly in the definition of f3 ?
Pls help .
sars (4 Replies)
Discussion started by: sars
4 Replies
6. Shell Programming and Scripting
Hi,
I'm trying to work on the script given below
#!/bin/ksh -x
pfile()
{
echo "$1"
}
touch smp19
echo "Hi" > smp19
result=$(pfile $smp19)
echo $result
As highlighted , when i pass $smp19 as parameter ,it does not display the output.However when i try giving "Hi" instead... (2 Replies)
Discussion started by: Sheema
2 Replies
7. Shell Programming and Scripting
I'm working on AIX 6, ksh shell. The parameters are some strings quotated by double quotation marks which from a file. They are quotated because there may be spaces in them.
Example:
"015607" "10" " " "A"I want to pass these parameters to a shell function by writing the following command:
... (4 Replies)
Discussion started by: Shimmey
4 Replies
8. UNIX for Dummies Questions & Answers
May i please know why is it printing the script name for $0 when i pass those parameters to function.
#!/bin/bash -x
usage()
{
echo "In Usage Function"
echo $0
echo $1
echo $2
}
echo "printing first time"
echo $0
echo $1
echo $2
usage $0 $1 $2
Output: (2 Replies)
Discussion started by: Ariean
2 Replies
9. Shell Programming and Scripting
Hello All,
I would like to ask help from you on how to pass variable value from a function that has been called inside the function. I have created below and
put the variables in " ". Is there another way I can do this? Thank you in advance.
readtasklist() {
while read -r mod ver... (1 Reply)
Discussion started by: aderamos12
1 Replies
10. Shell Programming and Scripting
Apologies if this is the incorrect forum.There is an issue in the function call I am facing while calling the same from a unix shell scripts.
Basically, I want the ref cursor to return values to a variable in sqlpus. The function call is currently saved in a ".txt" file
in a unix location. I want... (7 Replies)
Discussion started by: amvip
7 Replies
INPUT(1) General Commands Manual INPUT(1)
NAME
input - Yagi-Uda project antenna defining program
SYNOPSIS
input [ - h ]
DESCRIPTION
The program input is one of a number of executable programs that forms part of a set of programs, collectively known as the Yagi-Uda
project , which were designed for analysis and optimisation of Yagi-Uda antennas. input is an interactive program, that asks the user for
information about a Yagi design, such as position of elements, spacing between elements, frequency span of interest and a filename to save
the data to. input then writes this information into an ASCII file, which can be read by yagi or optimise The file is ASCII and it's for-
mat is easily understood by inspection (there are comments printed in it), so it can if necessary be edited manually.
After running input and specifying a filename (for example 144e10) you should then type yagi 144e10 and then output 144e10 and optionally
optimise 144e10
OPTIONS
-h Print a help message.
FILES
filename ASCII data file in which design is put.
PLATFORMS
Both DOS and Unix versions have been built. The DOS version as distributed requires a 386 PC with a 387 maths coprocessor.
AUTHORS
Dr. David Kirkby G8WRB (david.kirkby@onetel.net). with help with in converting to DOS/PC from Dr. Joe Mack NA3T (mack@fcrfv2.ncifcrf.gov)
SEE ALSO
first(1), yagi(), output(1), optimise(1), input (5), first(5), yagi(5), output(5) and optimise(5).
Bugs should be reported to
david.kirkby@onetel.net.
Bugs tend actually to be fixed if they can be isolated, so it is in your interest to report them in such a way that they can be easily
reproduced.
If a mistake is made during inputting of data (such as entering an incorrect length), it is not possible to go back and correct this. You
should make a note of the error, and edit the ASCII text file with a text editor (vi, DOS edit etc).
Version 1.16 24th October 2000 INPUT(1)