Concatenate Problem - First & Last file are Overlaying
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Concatenate Problem - First & Last file are Overlaying
Hi,
I did search the forums, but could not find my problem listed. I hope its an easy solution and I apologise if it is! Im learning...
So, I am trying to concatenate some .pds files which are like .post script files and contain a lot of graphics & text. This is the command im using -
Code:
cat file1 file2 file3 file4 file5 file6 > file7
However when I open the file7 and let it spool the output that I am getting is
File1&File6 (on top of each other) then the rest of the files have concatenated correctly. So its like it has wrapped the last file6 and it is overlaying at the top of the file.
Is there a limit on how long/how much you can concatenate? or is there another useful variable I can use in this command to ensure that file6 stays at the bottom of the output file??
Would really appreciate anybodys help. Let me know if you need more information!
P.S - using RHEL 4.5.
I don't know exactly, but since postscript-type files are rather complex it might be something about the way the files are formatted that's causing problems. How about trying to concatenate them one-by-one and see if the problem is with a specific file?
FYI, you can shorten your command for a series of sequential files with "cat file[1-6]" or "cat file{1..6}"
Hi,
Thanks for your suggestions. Shakezilla, I dont think this app will work for what I need. the documents I am trying to concat are PDS not PDF and work quite differently from each other, as far as my knowledge goes.
David The H. - Thanks for you suggestion to concat each file one at a time. I had already tried this previously and it does appear to be File 6 that has the problem, everything else concats fine. I tried concatting file 5 & 6 together and I get the same misfortunate result where file 6 is on top of file 5.
I have also tried to use different versions of this file (incase one was corrupt).
Im out of ideas - any more help would be appreciated! Thanks so far!!
It sounds to me then that the problem is entirely in file6 itself. I'm sure it's concatenating properly, but I'm guessing some bug or error in the way it's encoded causes it to always display as if it were the first page. So it's probably that file you have to correct, rather than the way you combine it with others.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.