10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to merge files as described below:
File 1
a;1;abc
b;2;def
c;3;xyz
d;4;pqr
e;5;mno
File 2
b;41
d;77
output
a;1;abc (9 Replies)
Discussion started by: Prabal Ghura
9 Replies
2. Shell Programming and Scripting
Hello ,
My requirement is to add additional column sequentially to a text file based on the column value -
i/p file
id1|varchar
id2|varchar
id3|number
id4|number
id5|date
id6|date
---------------------------------------
o/p file
colv1|id1 (if second column value is varchar then... (3 Replies)
Discussion started by: Pratik4891
3 Replies
3. Shell Programming and Scripting
I made a script that sends an email with one long line, line looks like this.
UY453;HJ345;BM342;JH526;HJ245;HJ234;NM235;........JK453;SD245;
The mail has about 200 of those IDs in one line, each ID is separtated by ";".
The problem is that there is a random exclemation mark and it... (3 Replies)
Discussion started by: ajetangay
3 Replies
4. Shell Programming and Scripting
I have input CSV files as
TS DS_WKLDNM InterfaceSpeed
29/07/2014 20:00:00 xxx112/1/18 10000000000
29/07/2014 09:00:00 xxx112/1/19 10000000000
29/07/2014 21:00:00 xxx112/1/2 10000000000
29/07/2014 20:00:00 xxx112/1/20 10000000000
29/07/2014... (10 Replies)
Discussion started by: Moon1234
10 Replies
5. Shell Programming and Scripting
Hello,
I have a data such as this:
ENSGALG00000000189 329 G A 4 2 0
ENSGALG00000000189 518 T C 5 1 0
ENSGALG00000000189 1104 G A 5 1 0
ENSGALG00000000187 3687 G T 5 1 0
ENSGALG00000000187 4533 A T 4 2 0
ENSGALG00000000233 5811 T C 4 2 0
ENSGALG00000000233 5998 C A 5 1 0
I want to... (3 Replies)
Discussion started by: Homa
3 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
I have a file example.csv which looks like this
GrpID,TargetID,Signal,Avg_Num
CSCH74_1_1,2007,61,256
CSCH74_1_1,212007,647,679
CSCH74_1_1,12007,3,32
CSCH74_1_1,207,299,777
I want the output as
GrpID,TragetID,Signal-CSCH74_1_1,Avg_Num
CSCH74_1_1,2007,61,256... (1 Reply)
Discussion started by: Vavad
1 Replies
7. Shell Programming and Scripting
Hi All,
I have a file example.csv which looks like this
GrpID,TargetID,Signal,Avg_Num
CSCH74_1_1,2007,61,256
CSCH74_1_1,212007,647,679
CSCH74_1_1,12007,3,32
CSCH74_1_1,207,299,777
I want the output as
GrpID,TragetID,Signal-CSCH74_1_1,Avg_Num
CSCH74_1_1,2007,61,256... (4 Replies)
Discussion started by: Vavad
4 Replies
8. Shell Programming and Scripting
Hello,
I have a comma separated flat file. It contains some 20 columns. I want to add two new columns at position 2,3. So that file will have 22 columns. I am providing here sample data with file having 4 columns. Appreciate your help in finding solution for this.
data in input file:... (11 Replies)
Discussion started by: ravi.videla
11 Replies
9. Shell Programming and Scripting
Hello,
I'm struggling with the following problem in sh script:
Adding a column to the right-end of a file ("master-file": non-constant column number, tab and linux formatted) where the column is the 4th one of file1 (space and DOS formatted)
Changing the header of column 4 of file 1 at the... (4 Replies)
Discussion started by: lco
4 Replies
10. Shell Programming and Scripting
Hi I am trying to write a bash script to add a line of text to the middle of a file.
The way I worked it out was to calculate the number of lines and divide by 2. The file I am using is called newfile and it just contains lines of data.
The new file I have created I have called midfile and... (7 Replies)
Discussion started by: BundBash
7 Replies