Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
    
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
add comment

migrated from stackoverflow.com Dec 10 '12 at 19:15

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

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.