1748281 Members
4065 Online
108761 Solutions
New Discussion юеВ

Re: paste command:

 
SOLVED
Go to solution
Sharvil Desai
Frequent Advisor

paste command:

Hi,
Currently I am doing:
paste -d "\t" file1.txt file2.txt

However, I need to separate the lines from two files by two tabs not only one. "\t\t" is not working. Can you please suggest something? Thank you very much.
"help!"
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: paste command:

Paste only inserts a single character as a separator so yoiu solution will not work but you can pipe the output of your paste through sed to accomplish your goal:

paste -d '' file1.txt file2.txt | sed 's///g'

Note: is actually a tab character.
If it ain't broke, I can fix that.
Sharvil Desai
Frequent Advisor

Re: paste command:

:-) Thank you for clearing that up.
"help!"