Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

paste files without a space or tab

Status
Not open for further replies.
Feb 12, 2002
80
NO
Hi
I want to paste two files together and have NO delimiter, so that one line seemlessly joins another.

e.g

Code:
file_1            file_2
-------           ------
i want th         is line to
join up w         ith this line


result
------
i want this line to
join up with this line
does that make sense?
I have tried paste, and I can't get it to NOT put in a delimiter.

Any ideas?
Thanks.
 
Try this:
Code:
paste -d '\0' file_1 file_2
Anyway,
Code:
 man paste

Hope This Help
PH.
 
Why is it always the way, that when you try somethign the first time, it doesn't wok, then when someone points it out, it works?!

I'm sure it didn't work earlier - I think I might have been using "\0" rather than '\0'

Anyway - it has worked now - thank you.

Tim

PS I also thought of using this long winded method
Code:
 paste -d : file_1 file_2 | sed s/://
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top