Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i have a very basic cat problem. I have 23 files, all is one line and around 100000 columns. I am trying to merge these one lines. I type the command cat test1 test2 > outcome The command line is not giving me any error but it just prints the test1 to the output. Is there any limitations to cat command? or if the number of columns are different, does cat not like it? or any missing data? How can I check my one line to see what is going wrong? Thanks

share|improve this question

migrated from Dec 10 '12 at 19:15

This question came from our site for professional and enthusiast programmers.

Does test1 have a newline at the end? If not, the output of cat will be a single line. Perhaps you can try: echo > newline; cat test1 newline test2 newline > output. – William Pursell Dec 6 '12 at 18:04

To collaborate partially, you can eliminate wrong syntax, column number matching and missing data (whatever this means). I am don't know about particular limitations (although there certainly are some).

Some ideas:

  1. Try with two files with lines under 300 chars, just to check if there is some general problem with your system. If it works, it is some limit after all..

  2. Try without redirecting to a file (that is without > output)

  3. Try which cat

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .