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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Concat in unix

Status
Not open for further replies.

PatelRam

Programmer
Aug 20, 2003
87
0
0
US
May be silly question

How to concat two word in unix

'abcdeee' and '0000002222'

i want output like

abcdeee0000002222
 
first='abcdeee'
second='0000002222'

concat="${first}${second}"

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Which programming language?

If you are looking to do it in shell script, it is wise to use the &quot;-n&quot; flag to &quot;echo&quot; (depending on your shell, it's either builtin (consult your shell's manpage) or uses an external program (consult &quot;man echo&quot; -- though this is rare these days)).

The &quot;-n&quot; flag keeps &quot;echo&quot; from outputting a newline.

Cheers,

~kj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top