GNU utilities for Win32



Here 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

by ftp: no FTP mirror at the moment

latest updates (after 11/11/01):  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 accesses 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-0.9.0b
diffutils-2.7
fileutils-3.16
findutils-4.1
flex-2.5.4
gawk-3.0.3
grep-2.3
gsar110
gzip-1.2.4
indent-2.2.6
jwhois-2.4.1
less-340
m4-1.4
make-3.78.1
patch-2.4
recode-3.6
rman-3.0.7
sed-3.02
shellutils-1.9.4
tar-1.12
textutils-2.0
wget-1.7.0
which-2.4

Standard behaviour:

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

What is new:

   10/28/00

  • I think, it is time for an AES-Rijndael encryption program. My version uses Dr Brian Gladman's implementation of the algorithm.
    Usage:
    aesy [-v] [-e] [-k String] input-file
      -e : encrypt file, default is decrypt.
      -k String : your secret key, don't forget it!

    Notes: The key length is fixed to 256 bit at the moment. This is very alpha stage stuff, use it on your own risk (Download).

   01/01/01

  • There is a FAQ now.

   01/19/01

  • wget updated to version 1.6.0

   03/06/01

  • new version: recode updated to v3.6

  • diff suite updated again

   07/02/01

  • updated install.exe

  • updated dirname.exe: now accepts backslashes as well as slashes

  • updated mv.exe: the -f flag now works as expected

   07/07/01

  • updated indent.exe to v2.2.6

  • added John Walkers steganographic encryption program stego (public domain, Cryptography). As with all encryption programs, be careful.

   09/01/01

  • updated wget to v1.7

  • updated find.exe: it preserves case in directory names now

   10/01/01

  • updated tar.exe: it preserves case in directory names now

  • The programs are now in use on all continents of earth, including Antarctica

   11/11/01

  • New edition

  • There is a usr/local/lib directory now, containing libfl.lib for use with MS Visual C and libfl.a for use with the mingw gcc2.95.3

  • zcat.exe is now really a renamed gzip.exe

 

Program

Notes

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
unshar.exe
uudecode.exe
uuencode.exe
wc.exe
wget.exe wget 1.7 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.xraylith.wisc.edu/~khan/software/gnu-win32/egcs-mingw32.html
A zsh shell for Win32:
     ftp://ftp.blarg.net/users/amol/zsh
The home of vim, has a Win32 version:

   file:///C:/home/unx/doc/  %20http:/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/
A free IDE for the Win32 gcc:
  VIDE

HTML man pages for the GNU utilities:
     http://www.delorie.com/gnu/docs/
An Un*x shell scripting resource:
     http://cygutils.netpedia.net/
Another source of unixish stuff:
     http://virtunix.itribe.net/

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

Programs missing from this distribution, especially a command line registry editor.
    Combined with sed, you can do horrible things to your computer:
     http://www.eltrun.aueb.gr/dds/sw/outwit

Native Perl and Python on Win32:
     http://www.activestate.com/

An Un*x emulation on Win32:
     http://sourceware.cygnus.com/cygwin/
Another Un*x emulation on Win32:
     http://www.research.att.com/sw/tools/uwin/
An Un*x emulation on Win2000, formerly known as Interix:
     http://www.microsoft.com/windows2000/interix/


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