Column wide file binding


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Column wide file binding
# 1  
Old 08-07-2007
Column wide file binding

What is the best way to bind files in column wide?
Looks a simple, but I don't know the most economic way.
I tried to merge, and cat function, but not success!!

Ex.)
file 1
1 2 3
2 3 4

file 2
3 4 5
4 5 6

file 3
2 3 4
1 2 7

I would like to see the result below
file 4
1 2 3 3 4 5 2 3 4
2 3 4 4 5 6 1 2 7

Thanks,
# 2  
Old 08-07-2007
Code:
paste -d' ' file1 file2 file3

# 3  
Old 08-08-2007
MySQL

sweet!!
Thanks Shell_life.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

When trying to open file Message:-Terminal too wide?

Hi, I am trying to open small size file only in vi editor on solaris or Linux machine but it giving message "Terminal too wide" and then I have to come out. As shown below:- -rwxr-x--- 1 rkycadm rkycprd 2445 Sep 12 04:06 $ vi file.txt Terminal too wide :q! ----------... (2 Replies)
Discussion started by: RahulJoshi
2 Replies

2. Shell Programming and Scripting

Awk: Need help replacing a specific column in a file by part of a column in another file

Hi, I have two input files as File1 : ABC:client1:project1 XYZ:client2-aa:project2 DEF:client4:proj File2 : client1:W-170:xx client2-aa:WT-04:yy client4:L-005A:zz Also, array of valid values can be hardcoded like Output : ABC:W:project1 XYZ:WT:project2 (1 Reply)
Discussion started by: aa2601
1 Replies

3. Shell Programming and Scripting

Match column 3 in file1 to column 1 in file 2 and replace with column 2 from file2

Match column 3 in file1 to column 1 in file 2 and replace with column 2 from file2 file 1 sample SNDK 80004C101 AT XLNX 983919101 BB NETL 64118B100 BS AMD 007903107 CC KLAC 482480100 DC TER 880770102 KATS ATHR 04743P108 KATS... (7 Replies)
Discussion started by: rydz00
7 Replies

4. IP Networking

Binding the IP address

hi all, i have an udp based application that doesn't bind to any particular address. -->while sneding the packets, i have some doubts.... 1) can the packet be transmitted with an source ip address as 0.0.0.0 2) if we select an interface based on destination ip address,... (0 Replies)
Discussion started by: vijaypdp2006
0 Replies

5. Shell Programming and Scripting

Changing one column of delimited file column to fixed width column

Hi, Iam new to unix. I have one input file . Input file : ID1~Name1~Place1 ID2~Name2~Place2 ID3~Name3~Place3 I need output such that only first column should change to fixed width column of 15 characters of length. Output File: ID1<<12 spaces>>Name1~Place1 ID2<<12... (5 Replies)
Discussion started by: manneni prakash
5 Replies

6. Programming

Binding file lifescope to a process

Hi, I need a way to bind the lifescope of a file to the lifescope of a process, but that file needs to remain visible in the filesystem for other processes. I've been able to do this on Widows based OSes, but the UNIX based OSes solution have eluded me so far. I am aware of the common solution... (3 Replies)
Discussion started by: Fronsac
3 Replies

7. UNIX for Dummies Questions & Answers

Terminal too wide

Hi Experts, It may be a trivial thing, but I am stuck. Whenver I try to open a file using vi I get error Terminal Too wide. I am using putty to connect to a Sun OS. Please advice. bash-2.05$ vi all_subs_ded_20080203.txt Terminal too wide :q 1 more file to edit:q (3 Replies)
Discussion started by: RishiPahuja
3 Replies

8. IP Networking

binding problems

i had a problem when using the bind function.. that is when i create a socket and bind it with a address(usually some file name)... when i run it once it goes on fine but the second time it tells a error since there is already a socket file in that name created by my previous run... but when i... (2 Replies)
Discussion started by: damn_bkb
2 Replies

9. Shell Programming and Scripting

Extarct specific records from wide file

I have a file which is 5 million records. And each records has 412 fields has delimited by "|". So that makes each records to be 2923 bytes long. I wanted to extract specific records like top 100 or 2500 - 5000, 50001 - 10000 etc. from this file. I tried using head command for top 100 records,... (1 Reply)
Discussion started by: acheepi
1 Replies
Login or Register to Ask a Question