Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Script parameter with several values Post 303035062 by big123456 on Monday 13th of May 2019 09:13:26 AM
Old 05-13-2019
Script parameter with several values

Hi,
On ksh
I have to write a script tha I will run like this:
Code:
./myscript.ksh -param1 val1 val2 val3  ..   -param2 xxx -param3 hgf

Param1 will be an array:
Code:
param1= ( val1 val2 val3 ..... )

How can I do that?

It is not a homework!!

Thank you.

Last edited by vbe; 05-13-2019 at 10:20 AM.. Reason: code tags
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Capturing the values of column in one parameter

Hi, I am trying to capture the values of a column in a parameter..here is what I wanted to do... 1,2,3,4 2,3,4,1 3,4,1,2 4,1,2,3 is there any way that I could get the values of column values into one parameter?? Here is what I want... COL1=1,2,3,4 COL2=2,3,4,1 ... (5 Replies)
Discussion started by: mgirinath
5 Replies

2. UNIX for Dummies Questions & Answers

checking parameter values passed to script

Hi, I will pass 3 parameters for a script.I have to check the file name and create a new file name with time stamp. the parameters which i'm passing are /dir/stg/filename.txt /dir/path/head.txt /dir/path/tail.txt Now i have to check filename like : if it is a.txt i have to create... (2 Replies)
Discussion started by: ammu
2 Replies

3. UNIX for Dummies Questions & Answers

kernel parameter values

Hi All Need to find kernel parameter values of our UNIX box. /filesys1/tmp>uname -a HP-UX hps1_dc B.11.11 U 9000/800 1681349356 unlimited-user license /filesys1/CDBLprodrun/tmp> Can anyone help me with the cmd to find kernel parameter values? Thanks in advance. (1 Reply)
Discussion started by: mhbd
1 Replies

4. Linux

system parameter values on Red Hat Linux

I am making a shell script that will display memory, disk space and CPU utilization at periodic intervals. I am planning to use free, df -h and mpstat commands and then parse them to extract the values. Can someone give me idea if I am using the correct command. I am interested to display overall... (2 Replies)
Discussion started by: asutoshch
2 Replies

5. Shell Programming and Scripting

awk/sed script to read values from parameter files

Hi, I am writing a shell program that executes a lot of Oracle SQL Files on different databases based on the enviroment setting value. I am trying to design a parameter file where i can store the environment values for all the databases in the below format Environment File File Name... (6 Replies)
Discussion started by: rajan_san
6 Replies

6. UNIX for Dummies Questions & Answers

need to retrieve values of parameter

Hi, I am just new to this shell scripting wizard..i have a text file which contains content as below: Parameter=10; What should be the script which only fetches the value 10 not the Parameter. The idea is to get the logic behind getting the value alone not its parameter,.... (6 Replies)
Discussion started by: d8011
6 Replies

7. UNIX for Dummies Questions & Answers

How do I list kernel module parameter values?

Hi, I have problem with parameter configuration. My question is after the configuration, how to check if successfully change the value or not? I saw someone has the same question, and followed his steps. Original thread:... (3 Replies)
Discussion started by: skybb
3 Replies

8. Shell Programming and Scripting

Passing parameter to script, and split the parameter

i am passing input parameter 'one_two' to the script , the script output should display the result as below one_1two one_2two one_3two if then echo " Usage : <$0> <DATABASE> " exit 0 else for DB in 1 2 3 do DBname=`$DATABASE | awk -F "_" '{print $1_${DB}_$2}` done fi (5 Replies)
Discussion started by: only4satish
5 Replies

9. Shell Programming and Scripting

Using grep and a parameter file to return unique values

Hello Everyone! I have updated the first post so that my intentions are easier to understand, and also attached sample files (post #18). I have over 500 text files in a directory. Over 1 GB of data. The data in those files is organised in lines: My intention is to return one line per... (23 Replies)
Discussion started by: clippertm
23 Replies

10. Shell Programming and Scripting

Call Script with Parameter (that has another parameter)

Hi. How do I achieve this sh /EDWH-DMT02/script/MISC/exec_sql.sh "@/EDWH-DMT02/script/others/CSM_CKC/Complete_List.sql ${file_name}" Complete_List.txt The /EDWH-DMT02/script/MISC/exec_sql.sh has two parameters and it's working fine with this sh /EDWH-DMT02/script/MISC/exec_sql.sh... (7 Replies)
Discussion started by: aimy
7 Replies
tcmodinfo(1)						      General Commands Manual						      tcmodinfo(1)

NAME
tcmodinfo - Get and Set information in transcode modules SYNOPSIS
tcmodinfo [ -i name ] [ -m path ] [ -t type ] [ -M param ] [ -C param ] [ -s socket ] [ -p ] [ -d verbosity ] [ -v ] COPYRIGHT
tcmodinfo is Copyright (C) by Tilmann Bitterberg/Transcode Team DESCRIPTION
tcmodinfo loads a supplied transcode(1) module and prints its parameters, or inquiry about default settings. It can also connect to transcode through a socket to do runtime configuration of transcode and its filters. Anyway, this last feature may be moved to some other helper program in future releases. OPTIONS
-i name Specify the name of the module. Name is specified without the prefix (i.e., filter_)_ and without the suffix .so So if you want information about filter_smooth.so, just supply smooth -m path Look in Path instead of the compiled-in module path for a module. -t type Specify the Type of module to load. Default is filter modules. In current (1.1.0) release, tcmodinfo support 'filter', 'encode' and 'multiplex' module types. More types will be added in future releases, to cover all the transcode module range. -M parameter Print out the default setting of given parameter of a given (use -i/-t options too) module. If parameter isn't known, nothing will be print out. Caution: -M can't be used together with -C -C configuration string Request to configure the module using given configuration string. Meaning of configuration string is of course module dependent, but format is always param1:key1=val1:param2:param3:key2=val2 This option is used for debug purposes, you usually shouldn't need it. Caution: -C can't be used together with -M -s socket Connect to socket socket. You can use this socket to do runtime configuration of transcode. For all the boring details about the socket protocol have a look at /docs/filter-socket.txt. transcode has to be started with the --socket option to open the socket. -d verbosity Specify the verbosiness level to use, like transcode does. Default value is 1 (TC_INFO verbosiness). -p Print the compiled-in module path and exit. -v Print version information and exit. EXAMPLES
The command tcmodinfo -i smooth prints information about the smooth filter. tcmodinfo -i levels -t filter same as above for levels filter (-t filter it's the default) tcmodinfo -i raw -t multiplex same as above for raw multiplexor tcmodinfo -i xvid -t encode same as above for XviD encoder transcode --socket /tmp/tc-socket & echo help | tcmodinfo -s /tmp/tc-socket prints the socket help text and exits. tcmodinfo -s /tmp/tc-socket Will drop you into an interactive "shell" where you can talk to the socket. AUTHORS
tcmodinfo was written by Tilmann Bitterberg <transcode@tibit.org> with contributions from many others. See AUTHORS for details. SEE ALSO
avimerge(1), avisplit(1), tccat(1), tcdecode(1), tcdemux(1), tcextract(1), tcprobe(1), tcscan(1), transcode(1) tcmodinfo(1) 21th January 2003 tcmodinfo(1)
All times are GMT -4. The time now is 11:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy