View Single Post
  #20  
Old September 7th 18, 03:41 PM posted to alt.windows7.general,microsoft.public.windowsxp.general
Frank Slootweg
external usenet poster
 
Posts: 1,226
Default Merge text files & then sort unique in DOS

Paul wrote:
[...]

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.


[...]

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.


Note that GnuWin does not contain any kind of shell (i.e. no bash,
ksh, csh, etc..). If you want/need a shell, for example for
making/running shell scripts, you need to get a shell from for example
Cygwin. If you need to get Cygwin for a shell, you might as well use
only Cygwin, instead of GnuWin plus Cygwin's shell.

http://gnuwin32.sourceforge.net/faq.html#How_do_I_run_shell_scripts

"How do I run shell scripts?

Shell scripts can be recognized by the first line #! /bin/sh. Such
shell scripts need a Unix shell to run. Such shells (Bash, Ksh or Csh)
are available from Cygwin, Djgpp, Uwin, and MS-Windows Services for
Unix (SFU). Alternatively, one may translate the script into
MS-Windows batch or script language."

Since Cygwin is much, much more complete than GnuWin and still
actively developed/maintained (instead 'dormant' for 10 years), it's
probably best to use GnuWin only if you only need some Unix commands and
nothing more.

[...]
Ads