Search Results

Search: Posts Made By: adars1
1,734
Posted By adars1
How to use one variable value to another variable?
Iam trying to print one varaible in which it needs to get value from another variable.
val=br
br_queue=X
q=${val}_queue
echo "$q"
-------
it should print -- X
4,718
Posted By adars1
BR_NAME='DONEBR10 DONEBR20' # queue name ...
BR_NAME='DONEBR10 DONEBR20'
# queue name
DONEBR10=X
DONEBR20=Y

set -- $BR_NAME
for name in "$@";
do
eval echo \$name \$$name
echo "---ddddd--------------------------"
done

-- I got...
4,718
Posted By adars1
how to read delimited text into array
I am trying to parse a string using delimited char into array.
BNAME=B10,B20,B30
B10.Q=X
B20.Q=Y
B30.Q=Z

I need to parsethe BNAME into array, then i will loop through array to execute command...
2,935
Posted By adars1
thanks tyler, its working. is it possible to get...
thanks tyler, its working. is it possible to get it in shell script, since i donot have access to perl.
2,935
Posted By adars1
Capture values using multiple regex patterns
I have to read the file, in each line of file i need to get 2 values using more than one search pattern.
ex: <0112 02:12:20 def > /some string/some string|[match string]|some string||124

i donot...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 07:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy