9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi all,
trying this using shell/bash with sed/awk/grep
I have two files, one containing one column, the other containing multiple columns (comma delimited).
file1.txt
abc12345
def12345
ghi54321
...
file2.txt
abc1,text1,texta
abc,text2,textb
def123,text3,textc
gh,text4,textd... (6 Replies)
Discussion started by: shogun1970
6 Replies
2. Shell Programming and Scripting
Hello,
I want to concatenate 2-columns by 2-columns separated by colon. How can I do so? For example, I have a text file containing 6 columns separated by tab. I want to concatenate column 1 and 2; column 3 and 4; column 5 and 6, respectively, and put a colon in between.
input file:
1 0 0 1... (10 Replies)
Discussion started by: huiyee1
10 Replies
3. Programming
Hi
mY files paths are defined as :
//sbase = 'D:\data\sample_AMC\fasta_files\';
sbase2 = 'D:\data\sample_AMC\fasta_files\results\';
snameprefix = 'orig_ind';
snameprefix3 = 'results_ind';
...
const string filname = sbase + snameprefix + snamesuffix;
const string resultsname_ =... (2 Replies)
Discussion started by: siya@
2 Replies
4. Shell Programming and Scripting
In any given file, wherever a certain data block exists I need to concatenate the values(text after each "=" sign) from that block. in that block. The block starts and ends with specific pattern, say BEGIN DS and END DS respectively. The block size may vary. A file will have multiple such blocks.... (12 Replies)
Discussion started by: Prev
12 Replies
5. Shell Programming and Scripting
Hi,
I have a file files.txt containing data as below:
abc;xyz
uvw;pqr
123;456
I want to develop strings like below using the above data and write them into another file:
www/xxx/abc/yyy/xyz
www/xxx/uvw/yyy/pqr
www/xxx/123/yyy/456
All this needs to be done through .sh file.
... (4 Replies)
Discussion started by: archana.n
4 Replies
6. Shell Programming and Scripting
Hi. I'm attempting to copy 4 text files together to create one larger file. All four files contain text in the same format. Can I do this?
I attempted this, but it didn't work:
cp wscreening_test_h_po.dat+wscreening_test_b_po.dat+wscreening_test_h_notpo.dat... (1 Reply)
Discussion started by: buechler66
1 Replies
7. Shell Programming and Scripting
Hi
I found the following line would concatenate all test_01 test_02 test_03 files into "bigfile".
cat test_* >> bigfile
But, what I'm looking for a way to insert each file names in order when concatenated in "bigfile".
Thank you
samky2005 (2 Replies)
Discussion started by: samky2005
2 Replies
8. UNIX for Advanced & Expert Users
I have a file MyTest.csv saved in Unicode format in Incoming directory, and I have another file called MyTest.csv saved in ANSII format in InProcess Directory.
I need to concatenate the text of both these files and put in another file MyTest.csv which is placed in the root directory.
How do I... (1 Reply)
Discussion started by: Uniq
1 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
I have a question about file concatenate on unix. I have two file
1 of them like aaa,bbb,ccc,ddd
other one is eee,fff,ggg,hhh
I want to concatenate those file like this position
aaa,bbb,ccc,ddd,eee,fff,ggg,hhh
how can I do this ??
thanks.
Alice (3 Replies)
Discussion started by: alisev
3 Replies