hi
i have a function
abc
{
//from this function i am passing args to antoher function like
def a b c j k l
}
now i want to count the no of args coming to def() function and iterate over those values
is there any way to do this one
please help (2 Replies)
Hi,
I am using SYBASE database. in my script i am connecting to DB via using isql.
isql -U${S_USER} -S${S_SERV} -D${S_DB} -P${S_PWD} -b0 -w3000 -h0 -s"|" -i${MYDIR}/ABC.sql -oXYZ.txt << FINSQL
i am taking a ABC.sql file to use the queries written in it and storing the output in... (3 Replies)
hi,
i have an rpm, and i am looking at the presinstall script. i can see it takes in an argument, but what i do not know is how this argument is passed to the script? is there something that calls the preinstall script? i thought the preinstall script was the first thing executed.
thanks (2 Replies)
Hi Guys,
I am trying to pass arguments to the script i am wrinting.
When no argument is passed or wrong argument is passed, the script needs to output the way it needs to be called and exit.
Currently, when no arguments is passed, it is not getting exited but goes on assuming those... (3 Replies)
Hi
I want to write a script which store all the parameters passed to the script into an array.
Once it is stored I want scan through the array and and delete those files for last month present inside the directory. The files in directory is appneded with YYYY_MM_DD.
I want to know how can I... (3 Replies)
this is my issue.
4 parameters are passed from korn shell to sql script.
parameter_1= varchar2 datatype or no value entered my user.
parameter_2= number datatype or no value entered my user.
parameter_3= number datatype or no value entered my user.
parameter_4= number datatype or no... (5 Replies)
Hi all,
I am trying to delete columns in a file using a script. The columns that need to be deleted are passed as arguments to the script.
The script should look like this
> delete_columns.sh <file_name.txt> <column_numbers_to_be_deleted>
The contents of the file_name.txt will be like ... (5 Replies)
My requirement is that I want to pass similar argument to a shell script and process it in the script. Something like below:
myScript.sh -c COMPONENT1 -c COMPONENT2 -a APPNote: -c option can be specified multiple times and -a is optional parameter
I know this can be achieved using... (2 Replies)
Hi All,
I have a script which intends to create as many variables at runtime, as the number of parameters passed to it. The script needs to save these parameter values in the variables created and print them
abc.sh
----------
export Numbr_Parms=$#
export a=1
while
do
export... (3 Replies)
Discussion started by: dev.devil.1983
3 Replies
LEARN ABOUT DEBIAN
0alias
0ALIAS(1)0ALIAS(1)NAME
0alias -- create quick scripts to run 0launch
SYNOPSIS
0alias ALIAS [INTERFACE [MAIN]]
DESCRIPTION
Having to keep typing the full URI for a program each time you want to run it with 0launch is annoying. 0alias will create a little script
in your PATH to do it for you.
Note: the newer "0install add" command provides a more efficient alternative to using aliases.
EXAMPLES
A program can be invoked using 0launch:
0launch http://rox.sourceforge.net/2005/interfaces/Edit
To avoid having to keep entering the URI, create an alias:
0alias rox-edit http://rox.sourceforge.net/2005/interfaces/Edit
To run Edit now:
rox-edit
To select a different version, or check for updates:
0alias rox-edit
If an interface provides more than one program, you can specify which one to use instead of the default. e.g.
0alias svn http://example.com/subversion
0alias svnadmin http://example.com/subversion svnadmin
(this is for older programs that use MAIN; for newer programs you may need to use --command instead)
COMMAND-LINE OPTIONS-c=COMMAND, --command=COMMAND
The generated script will execute COMMAND rather than the default ("run").
-d=DIR, --dir=DIR
Install the script into directory DIR, rather than searching for a suitable directory in $PATH.
-h, --help
Show the built-in help text.
-m, --manpage
Display the manpage for the alias script given as the single argument. The alias can be an absolute pathname, or the name of a
script in $PATH. If the argument isn't an alias script, or if multiple arguments are given, then all arguments are passed to the
system 'man' command. This allows you to alias your man command like this:
alias man='0alias --manpage'
-r, --resolve
Print the interface URI for the given alias script to stdout.
-V, --version
Display version information.
LICENSE
Copyright (C) 2012 Thomas Leonard.
You may redistribute copies of this program under the terms of the GNU Lesser General Public License.
BUGS
Please report bugs to the developer mailing list:
http://0install.net/support.html
AUTHOR
The Zero Install Injector was created by Thomas Leonard.
SEE ALSO 0install(1), 0launch(1), 0desktop(1)
The Zero Install web-site:
http://0install.net
Thomas Leonard 2012 0ALIAS(1)