I discovered recently that Microsoft provides a Subsystem for UNIX-based Applications built-in to Windows 7. Fantastic! As with many other features, you'll have to enable it in "Windows features". When it's enabled, you'll need to download and install the Utilities and SDK for Subsystem for UNIX-based Applications. Then you'll find shortcuts to a C shell and a Korn shell in your start menu. I went with the C shell, which gave me tab completion, the up/down arrow command history etc.And there it was! tail -f on a logfile:

Windows 7 Ultimate and Enterprise only sadly. Being Professional isn't enough to use hax0r tools like this :)
ReplyDeleteYou're right! I never checked the system requirements. These hax0r tools are probably what makes it "Ultimate"! :)
DeleteThank you, thank you! I *know* I should learn power shell, but there's a learning curve there that I never have the time for when I need it, so sometimes I really miss the text processing pipelines of Unix for extracting summaries of this and that. This post was like discovering a gold mine. Korn shell with full multiline editing. Ctrl-z to bg. xargs. Even a working man command. Magic.
ReplyDelete