10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Experts,
Please bear with me, i need help
I am learning AWk and stuck up in one issue.
First point : I want to sum up column value for column 7, 9, 11,13 and column15 if rows in column 5 are duplicates.No action to be taken for rows where value in column 5 is unique.
Second point : For... (12 Replies)
Discussion started by: as7951
12 Replies
2. Shell Programming and Scripting
Hello there
I'd like to make a copy of 2nd column and have it printed in place of column 1. Remaining columns are needed as it.
test data:
ProbeSet GeneSymbol X22565285 X22566285
ILMN_1050008 MYOCD 6.577 7.395
ILMN_1050014 GPRC6A 6.595 6.668
ILMN_1050017 ... (2 Replies)
Discussion started by: genome
2 Replies
3. UNIX for Beginners Questions & Answers
Hi,
I have a file with list of items:
a
b
c
I would like to run a 1-liner (awk/perl) to duplicate and change the value of the existing column, i.e.:
a a
b b
c c
I can duplicate with awk: awk '{print $1 " " $1 }'
but couldn't figure out how to do the character change, your help is... (5 Replies)
Discussion started by: yan1
5 Replies
4. Shell Programming and Scripting
Dear folks
I have a map file of around 54K lines and some of the values in the second column have the same value and I want to find them and delete all of the same values. I looked over duplicate commands but my case is not to keep one of the duplicate values. I want to remove all of the same... (4 Replies)
Discussion started by: sajmar
4 Replies
5. Shell Programming and Scripting
Hi,
I have a similar input format-
A_1 2
B_0 4
A_1 1
B_2 5
A_4 1
and looking to print in this output format with headers. can you suggest in awk?awk because i am doing some pattern matching from parent file to print column 1 of my input using awk already.Thanks!
letter number_of_letters... (5 Replies)
Discussion started by: prashob123
5 Replies
6. UNIX for Dummies Questions & Answers
Hi experts, I have a tab-delimited file with one column containing values separated by a comma. I wish to duplicate the entire line for every value in that comma-delimited field.
For example:
$cat file
4444 4444 4444 4444
9990 2222,7777 6666 2222 ... (3 Replies)
Discussion started by: torchij
3 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I am new to Linux environment , I working on Linux script which should send auto email based on the specific condition from log file. Below is the sample log file
Name m/c usage
abc xxx 10
abc xxx 20
abc xxx 5
xyz ... (6 Replies)
Discussion started by: asjaiswal
6 Replies
8. Shell Programming and Scripting
Dear All,
I have file input like this:
INP901 5173 4114
INP902 5227
INP903 5284
INP904 5346
INP905 5400
INP906 5456
INP907 5511
INP908 5572
INP909 5622
INP910 5678
INP911 5739
INP912 5796
INP913 5845
INP914 5910
INP915 5965 (2 Replies)
Discussion started by: attila
2 Replies
9. Shell Programming and Scripting
Input file
Q6GZV8 AY548484>AAT09676.1>YP_031595.1>2947737>CLSP2512393
P0C9E9 AY261366
P0C9K3 AY261361>IPR004848>PF01639
P0C9I4 AY261363>IPR004848
Desired output file
Q6GZV8 AY548484
Q6GZV8 AAT09676.1
Q6GZV8 YP_031595.1
Q6GZV8 2947737
Q6GZV8 CLSP2512393
P0C9E9 AY261366... (3 Replies)
Discussion started by: perl_beginner
3 Replies
10. Shell Programming and Scripting
I have some tab delimited data and I need to duplicate the second column. It seems like I should just be able to do something simple in awk like,
awk '{ print $1, $2, $2, $3 }'
(the second field is the one that needs to be duplicated)
but I'm not sure how to print from $3 to the end of the... (3 Replies)
Discussion started by: LMHmedchem
3 Replies