I have values in the variable as so the for loop just fetches one by one
params=$'$HEW_SRC_DATABASE_LIB\nprmAttunityUser\nprmAttunityPwd\nprmODBCDataSource\nprmLoadInd\nprmS rc_Lib_ATM\nprmODBCDataSource_ATM'
and i have a grep command like this
Code:
ret=`grep \$y $pf`
Where $y refers to values in the params variable and $pf contains certain values w
I've a text file with below values viz. multiple rows with same values in column 3, 4 and 5, which need to be considered as duplicates. For all such cases, the rows from second occurrence onwards should be modified in a way that their values in first two columns are replaced with values as in first occurrence.
Suppose there is a column of numeric values like following:
File1:
1
2
3
3
3
4
4
4
5
6
I want the output:
3
4
That is, only the repeated lines. Is there any command line tools to find this out in Linux? (NB: The values are numerically sorted).
I have an array that consists of peaks in a data set over a threshold value. I have a corresponding array with the frequency values of all those points that survived the threshold. I would like to now find frequency values of just the highest value for each peak, and delete all the other values. Any ideas?
Dear All,
I have been trying to do a simple task of extracting 2 fields from the file (3 rows) and store it in an array variable. I tried with:
#! /bin/bash
ch=`cut -f10 tmp.txt`
counter=0
for p in $pid
do
c=${ch[$counter]}
echo "$c ..$counter"
counter=$((counter+1))
done
The filed 10 has 3 values: 14,19,6 in tmp.txt file.
Hi!
I am new to ksh scripting, specially array.
My preset values for the spinner comes from a String Array.
<string-array name="currencyArray">
<item>INR</item>
<item>USD</item>
<item>EUR</item>
</string-array>
I am able to display this and save this fine.
I am adding some values in a SQLite DB on "Add".
On update, i want to fetch the values and display on screen.
I wanna create a powershell script in which I want to add multiple values to an Array (Add into Array).
eg: I have 10 users in my company and want to create their AD account (without using csv file), if I use "Read-Host" as below.