Operating System - HP-UX
1752778 Members
5757 Online
108789 Solutions
New Discussion юеВ

Re: Extra tab or spacing during pasting 3 lines

 
SOLVED
Go to solution
Ngoh Chean Siung
Super Advisor

Extra tab or spacing during pasting 3 lines

Hi,

Below is my script:

paste /u/sits/bin/base /u/sits/bin/userid_file /u/sits/bin/history > /u/sits/bin/newbase

1) Content of "base" is ll /home/
2) Content of "userid_file" is example abc
3) Content of "history" is /.sh_history

Question
========
After executing this script, the output that I get is

/home/ abc /.sh_history

How to eliminate the tap or space before and after the user id "abc"?

The output that I want is /home/abc/.sh_history

regards.
3 REPLIES 3
Thierry Poels_1
Honored Contributor
Solution

Re: Extra tab or spacing during pasting 3 lines

hi,

simply replace the delimiter:

paste -d"" file1 file2 file3

regards,
Thierry Poels.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Ngoh Chean Siung
Super Advisor

Re: Extra tab or spacing during pasting 3 lines

Hi,

Thanks.

I think there is space after -d

regards
Thierry Poels_1
Honored Contributor

Re: Extra tab or spacing during pasting 3 lines

a space after "-d" and the delimiter is allowed but not neccessary.

no space between the quotes or you're back on square one.

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.