If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Rate Thread | Display Modes |
Ads |
#2
|
|||
|
|||
Merge text files & then sort unique in DOS
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. |
#3
|
|||
|
|||
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 |
#4
|
|||
|
|||
Merge text files & then sort unique in DOS
Replying to 09/06 Paul
This software hasn't been touched in like, ten years. It still works great. http://gnuwin32.sourceforge.net/packages/coreutils.htm Got it! https://sourceforge.net/projects/gnu...tils-5.3.0.exe https://vorboss.dl.sourceforge.net/p...tils-5.3.0.exe This is the CoreUtils Setup Wizard which installs CoreUtils 5.3.0. The installer literally added exactly 100 executables to Windows. [.exe basename.exe cat.exe chgrp.exe chmod.exe chown.exe chroot.exe cksum.exe comm.exe cp.exe csplit.exe cut.exe date.exe dd.exe df.exe dir.exe dircolors.exe dirname.exe du.exe echo.exe env.exe expand.exe expr.exe factor.exe false.exe fmt.exe fold.exe gdate.exe gecho.exe ginstall.exe gln.exe gmkdir.exe grmdir.exe groups gsort.exe head.exe hostid.exe hostname.exe id.exe install.exe join.exe kill.exe libiconv2.dll libintl3.dll link.exe ln.exe logname.exe ls.exe md5sum.exe mkdir.exe mkfifo.exe mknod.exe mv.exe nice.exe nl.exe nohup.exe od.exe paste.exe pathchk.exe pinky.exe pr.exe printenv.exe printf.exe ptx.exe pwd.exe readlink.exe rm.exe rmdir.exe seq.exe setuidgid.exe sha1sum.exe shred.exe sleep.exe sort.exe split.exe stat.exe stty.exe su.exe sum.exe sync.exe tac.exe tail.exe tee.exe test.exe touch.exe tr.exe true.exe tsort.exe tty.exe uname.exe unexpand.exe uniq.exe unlink.exe uptime.exe users.exe vdir.exe wc.exe who.exe whoami.exe yes.exe |
#5
|
|||
|
|||
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. [...] |
#6
|
|||
|
|||
Merge text files & then sort unique in DOS
Frank Slootweg wrote:
it's probably best to use GnuWin only if you only need some Unix commands and nothing more. Correct! Which is exactly the problem as stated by the OP. Wants to pipe some crap, into a sort program with "unique" feature. Done. Paul |
Thread Tools | |
Display Modes | Rate This Thread |
|
|