LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-06-2011, 11:12 AM   #1
shyamsandeep
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Rep: Reputation: Disabled
how to cat multiple files into a single file with tab delimiter


i see whenever i try to cat multiple files into a single file all the data 2nd file is in next line,

could some one please help me on how to cat multiple files with tab delimit

file1 contains:

hello

file2 contains:

world

when i do cat file1 file2 > all.log , it yeilds me below in all.log

hello
world

i am looking for somthing like "hello world" with a space or tab or any delimiter
 
Old 09-06-2011, 11:19 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
cat is not the right tool, since it prints out the files in sequence. If you want to put the content of the files side by side, try the paste command which has TAB as default delimiter.
 
Old 09-06-2011, 11:30 AM   #3
shyamsandeep
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
awesome ...

awesome..thanks for the quick reply, paste has really solved my problem,

thanks again

-Sandeep
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How use CUT -d 'delimiter' is delimiter is a TAB? frenchn00b Programming 12 11-06-2013 03:17 AM
Xfce: Save Page As: single file vs multiple files. stf92 Linux - Newbie 1 11-28-2010 07:20 AM
Building a single .ko file from multiple source files rajesh_b Programming 2 04-01-2007 12:51 PM
Combines 16000 files into 1 single file > error tb: /bin/cat: Argument list too long guanyu Linux - General 4 02-09-2007 12:33 AM
Adding Multiple Files In A Single Gz File onacorpuscle Linux - Newbie 3 08-31-2006 03:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration