cmdutils:

I've managed to acquire grep, less, kill, nc, ps, and a few other UNIX commands for my Windows 2000 machine, but not everything. I wrote a few more that I liked. Partake below. Everything here is available under the BSD License

Download all cmdutils and source. (ZIP, 72 Kb.)

- cat [src] - Everyone's favorite echo utility. Implements the full cat(1) manpage.

- head [src] - Prints first few lines of a file. Full head(1) compatibility.

- tail [src] - Prints last few lines of a file. Only supports line counts, and does not keep file pipe open (-b, -c, -r, -f not supported options).

- repl [src] - Since DOS doesn't come with sed or awk, here's a hacked up string replace tool.

Usage: repl expression str [filename(s)]

expression   -   A string to be replaced in the file. Character sets and ranges such as 
                 [aeiou], [A-Z], [0-9] supported.

                 The character ^ before any character or range negates it. (Note:
                 because of how cmd works, the expression must be contained in "double 
                 quotes" if there is a ^ in the expression.)

                 * before any character or range matches zero or more instances.
                 . before any character or range matches one or more instances.

str           -  String to replace expression with.

filename(s)   -  Any files listed on the command line are opened and the substitution is
                 made and printed to stdout. (Files themselves are not modified.) If no 
                 filenames are specified, then repl uses stdin.

Bugs:	No escape character is provided, so you can't explicitly match a '*', '.', etc.

- batch utils - Lots of UNIX commands have DOS counterparts; contains batch files that alias them. Included: clear, cp, logout, ls, and mv.