View Single Post
  #18  
Old September 7th 18, 05:54 AM posted to alt.windows7.general,microsoft.public.windowsxp.general
Paul[_32_]
external usenet poster
 
Posts: 11,873
Default Merge text files & then sort unique in DOS

Grease Monkey wrote:
Replying to 09/06 Reinhard Skarbal

Maybe you find "textutils" somewhere in the web.
If not I will put it on workdownload.com


Just saw this.

Textutils is dead
http://www.gnu.org/software/textutils/

But it's in coreutils I think
http://www.gnu.org/software/coreutils/coreutils.html

Plenty of tarballs here
http://ftp.gnu.org/gnu/coreutils/

I see source code but no Windows binaries yet.


You are a naughty Grease Monkey.

Coreutils for Win32 is here.

http://gnuwin32.sourceforge.net/packages.html

This software hasn't been touched in like, ten years.
It still works great.

http://gnuwin32.sourceforge.net/packages/coreutils.htm

The binaries ZIP gives the actual executable EXE files.
Like sort.exe.

The Dependencies ZIP gives the DLL files. In this
kit, there are two DLLs that should sit next to the
EXE. If you don't install the DLLs, the "sort.exe"
will whine when you start it. That's one of the nicer
features of this software, is the dynamic DLL loader
method makes all the dependencies quite obvious
at runtime.

If you used the complete package, it might attempt
to add a certain "bin" directory to your %path%
variable. Which would "automate" things for you.
I can't be bothered with that, and just toss the
"sort.exe" and the two DLLs, into my working
directory. I use a scratch area for a lot of
experiments, and just assemble the tools I need
in the scratch.

Using cygwin can do much the same thing, but
the attention to detail differs between the
two environments. Cygwin programs have different
issues than gnuwin32 ones.

To give another kind of example, in Windows 10 there
is the Bash shell. And the "line endings" used are
"wrong" for Windows. You should find the gnuwin32
stuff OK in that regard.

I can't say right off hand, what the UTF-8 support
is like. Probably not good. So don't be surprised
if you pour something like that through one of
the tools, it doesn't work right.

But still, it's free, even though it's sourceforge,
those kits aren't booby trapped. You should be safe.

Paul
Ads