in reply to Re: Append big files
in thread Append big files

Hi

I'm working in windows. I'm getting some disconfigurations with my MS-DOS system. So I'm using perl in the windows 7 environment (much quicker in almost all the tasks...

Kepler

Replies are listed 'Best First'.
Re^3: Append big files
by Marshall (Canon) on Sep 15, 2016 at 01:42 UTC
    On Windows, use copy. copy file1+file2 Newfile. This file1+file2 syntax is weird, but that is the way it works. A wildcard would also work. copy file* Newfile At the command prompt, type "help copy".

    Update: I just saw the post by BrowserUk. Fine to put in the explicit /b switch although, I believe the default is binary in the first place. I looked for an exact quote from Microsoft to that effect, but couldn't find it. "copy /B file1+file2" result" also set binary for all of the files without having to /B each one. But again, I don't think you have to /B any of them. I have never used the /A option.

    Update: I did find some Microsoft stuff about /b and copy. copy command. Yes, /b (binary is the default). /a is a pretty much worthless critter that will append and extra EOF character (maybe CTL-Z or A?) to the end of the file after the copy. This is certainly not necessary on a Windows file system - it will supply something that PERL recognizes as EOF when the file runs out of bytes. that is the normal way.

Re^3: Append big files
by hippo (Archbishop) on Sep 14, 2016 at 22:55 UTC
    I'm working in windows.

    You have my sympathy. However, there's still the TYPE command available to you there should you choose to use it. Otherwise, and more portably, just use the PPT version of cat.

      I usally have gnuwin32 or unxutils in my PATH i miss grep to much and find is better than anything native on windows

      L*

      There are no rules, there are no thumbs..
      Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.