Concatenate files

I have a file named "file1" which has the following data

10000
20000
30000

And I have a file named "file2" which has the following data

ABC
DEF
XYZ

My output should be

10000ABC
20000DEF
30000XYZ

How am I going to achieve this ? Any help would be really appreciated.. Thanks

paste -d"\0" file1 file2
1 Like

If I need my output as

10000|ABC
20000|DEF
30000|XYZ

How am I going to achieve this?

paste -d"|" file1 file2
1 Like