10 More Discussions You Might Find Interesting
I am using DB2 artisan tool and struck to handle multi values present in columns that are comma(,) separated. I want to convert those column values in separate rows .
For example :
Column 1 Column2
Column1 ... (3 Replies)
Discussion started by: Perlbaby
2. Shell Programming and Scripting
It is possible to generate a range of values according to column 1 and count the total of rows in the range.
15.0 - 15.9 = 4 (10 Replies)
Discussion started by: jiam912
3. Shell Programming and Scripting
Hi all ,
I have a file with the below content
employee|employee name||Job description|Job code|Unitcode|Account|geography|C1|C2|C3|C4|C5|C6|C7|C8|C9|Csource|Oct|Nov|Dec|Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep
Data section ... (1 Reply)
Discussion started by: Hypesslearner
4. Shell Programming and Scripting
I have a below data in a .csv file where all rows where col1 is A, col2 is odd numbers, similarly even numbers for all rows where col1 is B.
Note that my data has some other columns(not shown here) too (around 100) after col2.
.... ... (4 Replies)
Discussion started by: ks_reddy
5. Shell Programming and Scripting
Hi i have data with two columns like below.
I want to find average of column values like if the value in column 2 is between 0-250000 the average of column 1 is some xx and average of column2 is ww then if value is 250001-5000000 average of column 1 is yy and average of column 2 is zz.
And my... (5 Replies)
Discussion started by: bhargavpbk88
6. UNIX for Dummies Questions & Answers
I have a tab separated text file with two columns. I would like to make the first column values as headings for the second column values.
and I want to have a file
priorities... (4 Replies)
Discussion started by: Unilearn
7. Shell Programming and Scripting
I have results from some statistical analyses.
The format of the results are as given below:
I want to select lines that have a p-value (last column) less than 0.05 from all the results files (*.results) and cat to a new results file.
It would be very nice if a new column is added that tells... (2 Replies)
Discussion started by: genehunter
8. Shell Programming and Scripting
I have a requirement where in I read the values from a file using awk. The resulting data should be converted into row format from column format.
For ex: My log file login.lst contains the following
I use awk to grep only the server... (6 Replies)
Discussion started by: senthil3d
9. Shell Programming and Scripting
I have a file which is having 3 columns as (string string integer)
a b 1
x y 2
p k 5
y y 4
I want get the unique value of column 2 in a sorted way(on column 2) and the sum of the 3rd column of the corresponding rows. e.g the above file should return the... (6 Replies)
Discussion started by: amigarus
10. Shell Programming and Scripting
I have 2 different input files like this. I would like to pick the values or letters from the inputfile2 based on inputfile1 keys (A,F,N,X,Z).
I have done similar task by using awk but in that case the inputfiles are similar like in inputfile2 (all keys in 1st column and values in... (16 Replies)
Discussion started by: repinementer