GNU utilities for Win32


This are some ports of common GNU utilities to native Win32. In this context, native means the executables do only depend on the Microsoft C-runtime (msvcrt.dll) and not an emulation layer like that provided by Cygwin tools.

Download:

by http: UnxUtils.zip
latest updates (after 14-04-03):  UnxUpdates.zip

Source code:

I have started an Open source project at http://unxutils.sourceforge.net. There is a   CVS repository of all sources, even if the changes to the original GNU code are trivial. The repository can be accessed via anonymous CVS with the command
cvs -d:pserver:anonymous@cvs.UnxUtils.sourceforge.net:/cvsroot/unxutils login


The following program versions are covered:

bc-1.05
bison-1.28
bzip2-1.0.2
diffutils-2.7
fileutils-3.16
findutils-4.1
flex-2.5.4
gawk-3.1.0
grep-2.4.2
gsar110
gzip-1.2.4
indent-2.2.9
jwhois-2.4.1
less-340
m4-1.4
make-3.78.1
patch-2.5
recode-3.6
rman-3.0.7
sed-3.02
shellutils-1.9.4
tar-1.12
textutils-2.1

unrar-3.00
wget-1.8.2
which-2.4

Standard behavior:

  • forward as well as backward slashes in file paths are accepted.

What is new:


   14-04-03

  • New edition

  • The programs are in use on all continents of earth, including Antarctica. Still no users on Mars.

 

Program

Notes

agrep.exe got it from here: http://www.tgries.de/agrep/
ansi2knr.exe
basename.exe
bison.exe
bzip2.exe Julian Sewards alternative compressor
bunzip2.exe
bzip2recover.exe
cat.exe
chgrp.exe dummy
chmod.exe
chown.exe dummy
cksum.exe
cmp.exe
comm.exe
compress.exe for (de)compressing .Z files; this is actually a program called ncompress and was found on one of  the Linux mirrors
cp.exe works only on NT, does real hardlinks on NTFS
csplit.exe
cut.exe
date.exe
dd.exe
df.exe dummy
diff.exe
diff3.exe
dirname.exe
du.exe
echo.exe
egrep.exe
env.exe dummy
expand.exe
expr.exe
factor.exe
fgrep.exe
find.exe
  • Example of command line under Cmd/Command shell:
    find -name *.txt -exec cat {} ;
flex.exe
fmt.exe
fold.exe
gawk.exe input files are opened in text mode
make.exe From v3.77 upwards, make searches for a sh.exe on the path. If it does not find one, it switches to win32 make mode that is it uses intermediate batch files for command processing.
This is fine until your makefile tries to execute something like mkdir, which will invoke the internal mkdir from cmd.exe or command.com. As the results may not be to your liking, you may prefer to use the sh.exe provide here.
grep.exe
gsar.exe
gunzip.exe
gzip.exe
head.exe
id.exe dummy
install.exe
join.exe
less.exe
ln.exe works only on NT, does real hardlinks on NTFS
logname.exe
ls.exe
m4.exe
md5sum.exe
mkdir.exe
mkfifo.exe dummy
mknod.exe dummy
mv.exe
mvdir.exe
nl.exe
od.exe
paste.exe
patch.exe
pathchk.exe
pr.exe
printenv.exe
printf.exe
ptx.exe
recode.exe
rm.exe
rman.exe PolyglotMan by Thomas A. Phelps ( source)
rmdir.exe
sdiff.exe
sed.exe
seq.exe
sleep.exe
sort.exe
sh.exe renamed zsh - this is no replacement for the Cygwin bash
shar.exe only works with -T (text) option
split.exe
stego.exe stego -E encode.me -T words.txt
Encodes file encode.me as gibberish text using words from the words.txt file to stdout. If the -T option is omitted, stego looks for a file called "words" in the current directory. Of course, the -D option will decode the input file; remember to redistribute words.txt together with the encoded file.
The purpose of this program is to disguise binary files as a kind of text file or to drive your coworkers mad.
su.exe dummy
sum.exe
sync.exe
tac.exe
tail.exe
tar.exe
  • only forward slashes are accepted
  • the -z option (compression) does not work
  • no remote archives
  • works only on NT, does real hardlinks on NTFS
tee.exe
test.exe
touch.exe
tr.exe
uname.exe
unexpand.exe
uniq.exe
unrar.exe This is unrar 3.00 beta 7, which seems to have been "free". Works good enough.
unshar.exe
uudecode.exe
uuencode.exe
wc.exe
wget.exe wget 1.8.2 builds out of the box with MS Visual C
which.exe does not search the current directory
whoami.exe
xargs.exe
yes.exe
zcat.exe

Additional programs

pclip.exe put the Windows clipboard text to stdout
gclip.exe get  the Windows clipboard text from stdin
Example: run the text from the clipboard through sed and put the result back
               pclip | sed "s/string1/string2/g" | gclip
gplay.exe My minimalist console multimedia player using DirectShow. With
gplay filename | URL
you should be able to play just everything, as long as Microsoft supports it.

md5 sums


Links:

The gcc compiler for Win32:
   http://www.mingw.org

Digital Mars compiler:
   http://www.digitalmars.com
A zsh shell for Win32:
   ftp://ftp.blarg.net/users/amol/zsh
The home of vim, has a Win32 version:

   http://www.vim.org
An emacs for NT:

   http://www.gnu.org/software/emacs/windows/ntemacs.html
The CVS version control system:
   http://www.cvshome.org
   http://www.cvsnt.org

A free IDE for the Win32 gcc:
  VIDE

JosĪ˜ Fonsecas site with related stuff:
     http://jrfonseca.dyndns.org/projects/gnu-win32
HTML man pages for the GNU utilities:
     http://www.fsf.org/manual/manual.html
An Un*x shell scripting resource:
     http://www.shelldorado.com/
Another source of unixish stuff:
     http://virtunix.itribe.net

Useful free NT system utilities:
     http://www.sysinternals.com

Some hints on cloning your system with dd:
     http://www.rajeevnet.com/hacks_hints/os_clone/os_cloning.html

Programs missing from this distribution, especially a command line registry editor.
     http://www.dmst.aueb.gr/dds/sw/outwit

The GNU Privacy Guard:
     http://www.gnupg.org

zip and unzip from the Infozip distribution:
     http://www.info-zip.org/pub/infozip

An Un*x emulation on Win32:
     http://www.cygwin.com
Another Un*x emulation on Win32:
     http://www.research.att.com/sw/tools/uwin/
Windows Services for UNIX, integrates the Interix subsystem:
     http://www.microsoft.com/windows/sfu/productinfo/overview/default.asp


Read my standard disclaimer: (really?)
Last change on 15-04-03 by Karl M. Syring (bug reports are welcome)
Original location of this page: http://www.weihenstephan.de/~syring/win32/UnxUtils.html