1 |
On Saturday 24 May 2008, 06:18, Zhang Weiwu wrote: |
2 |
|
3 |
> Hi. |
4 |
> |
5 |
> I got a datasheet from my colleague in MS Excel format and I intend to |
6 |
> process that file with my awk/sed knowledge. The problem is: he sent |
7 |
> me two Excel files each with 2134 records, in fact there should be |
8 |
> only one excel file with 2134 rows and 295 columns, but MS Excel can |
9 |
> only handle 256 data columns, so he split the datasheet vertically so |
10 |
> he can manage to send to me. |
11 |
> |
12 |
> Now I saved both file to tab-separated-value format, how do I join |
13 |
> them? |
14 |
|
15 |
IIUC, you have two files like this: |
16 |
|
17 |
|
18 |
file1: |
19 |
|
20 |
col1,col2,col3, ... ,col256 |
21 |
(2134 rows) |
22 |
|
23 |
|
24 |
file2: |
25 |
|
26 |
col257,col258, ... ,col295 |
27 |
(2134 rows) |
28 |
|
29 |
|
30 |
If my understanding is correct, then |
31 |
|
32 |
paste -d, file1 file2 |
33 |
|
34 |
should do what you want. |
35 |
Hope this helps. |
36 |
-- |
37 |
gentoo-user@l.g.o mailing list |