09-04-2009
awk -F";" '{ print $1 ; print $2 ; print $3 ; print $4 ; print $5}' parameter_file
this will separate all the parameters for you.
Not sure how to get them all in one variable. If that variable be an array then it may make some sense but otherwise are these parameters in one variable any good...?.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Say I write something like the following:
var1=1
var2=2
for int in 1 2
do
echo "\$var$int"
done
I want the output to be:
1
2
Instead I get something like:
$var1
$var2 (2 Replies)
Discussion started by: Awanka
2 Replies
2. Shell Programming and Scripting
Hi,
I need to read the parameters from a file and assign them to Global variables. I need to read a specific parameter value every time and pass it to the other script.
Suppose i have a parameter file like PARAM.txt
PAR1= VAL1
PAR2= VAL2
PAR3= VAL3
I want to read PAR2 file and in the... (1 Reply)
Discussion started by: Raamc
1 Replies
3. UNIX for Dummies Questions & Answers
hi
I have a shell script say primary.sh . There is a file called params
my scenario is
primary.sh should read all the values and echo it
for example
i should pass like
$primary.sh params
output would be
Abc
... (2 Replies)
Discussion started by: ssuresh1999
2 Replies
4. Shell Programming and Scripting
Hi
I am looking for a unix command or a small shell script which can takes one parameter and then searches for the passed in the parameter in any or all files under say /home/dev/
Can anyone please help me on this? (3 Replies)
Discussion started by: pankaj80
3 Replies
5. Shell Programming and Scripting
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
6. Shell Programming and Scripting
hi all,
i have a parameter file of following format, i want a method which can get the value of specific parameter.
parameter file format:
<Parameter Name="FileLocationWindows">
<Description>
The directory location of the logger file.
... (1 Reply)
Discussion started by: laxmikant.hcl
1 Replies
7. Shell Programming and Scripting
Hi,
I have the following files.
->cat scr.sh
export TMP_DIR=/home/user/folder1
export TMP_DIR_2=/home/user/folder2
while read line
do
cat "$line"
done<file_list.dat
------------------------
-> cat file_list.dat
$TMP_DIR/file1.txt
$TMP_DIR_2/file2.txt
---------------------------
-> cat... (6 Replies)
Discussion started by: barath
6 Replies
8. Shell Programming and Scripting
Hi ,
I am passing date parameter through file
my shell script testing.sh is
#set -x
#set -v
asd=$1
asd1=$2
echo $asd
echo $asd1
Passing parameter as below
sh testing.sh `cat file1.txt`
Output (2 Replies)
Discussion started by: kaushik02018
2 Replies
9. Shell Programming and Scripting
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
10. Shell Programming and Scripting
Hi Team,
In our project we have written below 2 scripts like
Script1:
Shell script start & END
Begin Audit process - uses teradata bteq
END Audit Process
Script 2: Environemtal variable file different
Now Client ask to change this requirement and need below files:
Script1:... (1 Reply)
Discussion started by: tusharzaware1
1 Replies
LEARN ABOUT CENTOS
tspi_context_getkeybypublicinfo
Tspi_Context_GetKeyByPublicInfo(3) TCG Software Stack Developer's Reference Tspi_Context_GetKeyByPublicInfo(3)
NAME
Tspi_Context_GetKeyByPublicInfo - search the persistent storage for a registered key using the provided public key information
SYNOPSIS
#include <tss/platform.h>
#include <tss/tcpa_defines.h>
#include <tss/tcpa_typedef.h>
#include <tss/tcpa_struct.h>
#include <tss/tss_typedef.h>
#include <tss/tss_structs.h>
#include <tss/tspi.h>
TSS_RESULT Tspi_Context_GetKeyByPublicInfo(TSS_HCONTEXT hContext, TSS_FLAG persistentStorageType,
TSS_ALGORITHM_ID algID, UINT32 ulPublicInfoLength,
BYTE* rgbPublicInfo, TSS_HKEY* phKey);
DESCRIPTION
TSS_Context_GetKeyByPublicInfo searches the persistent storage for a registered key using the provided public key information and creates
a key object initalized according to the found data. On successful completion of the method a handle to the created new key object is re-
turned.
PARAMETERS
hContext
The handle of the context object.
persistentStorageType
Flag indicating the persistent storage the key is registered in.
algId
This parameter indicates the algorithm of the requested key.
ulPublicInfoLength
The length of the public key info provided at the parameter rgbPublicInfo.
rgbPublicInfo
The public key info is provided to identify the key to be look for at the persistent storage. In case algID equals to TSS_ALG_RSA this
prameter contains the modulus of the public RSA key.
hKey
Recieves the handle of the key object representing the key. In case the key hasn't been found, this value will be NULL.
RETURN CODES
Tspi_Context_GetKeyByPublicInfo returns TSS_SUCCESS on success, otherwise one of the following values are returned:
TSS_E_INVALID_HANDLE - hContext is an invalid handle.
TSS_E_INTERNAL_ERROR - An error occurred internal to the TSS.
CONFORMING TO
Tspi_Context_GetKeyByPublicInfo conforms to the Trusted Computing Group Software Specification version 1.1 Golden
SEE ALSO
Tspi_Context_LoadKeyByUUID(3).
TSS 1.1 2004-05-26 Tspi_Context_GetKeyByPublicInfo(3)