How to concatenate text files together

Hi. I'm attempting to copy 4 text files together to create one larger file. All four files contain text in the same format. Can I do this?

I attempted this, but it didn't work:

cp wscreening_test_h_po.dat+wscreening_test_b_po.dat+wscreening_test_h_notpo.dat
+wscreening_test_b_notpo.dat wscreening_test.dat

Any help would be greatly appreciated. Thanks.

cat wscreening_test_h_po.dat wscreening_test_b_po.dat wscreening_test_h_notpo.dat wscreening_test_b_notpo.dat > wscreening_test.dat
1 Like