Hi,
The tail command on the DOS does not seem to be recognized on my XP. Any suggestions on printing last few lines on a very big log file on DOS.
Thanks Arun
Hi,
The tail command on the DOS does not seem to be recognized on my XP. Any suggestions on printing last few lines on a very big log file on DOS.
Thanks Arun
Does this help?
http://malektips.com/xp_dos_0001.html
http://commandwindows.com/server2003tools.htm
Here is the direct Microsoft link.
I have tested it on my machine (just out of curiosity and because I might need it) and it works fine.
If you install Cygwin, you can get all the warm and fuzzy Linux commands you are used to.
Cygwin is not an emulation layer, it simply provides win32 binaries of common utilities. It does give you a bash shell which is very nice.
DOS has no tail command; you can download a Windows binary for GNU tail and other GNU tools here.
There actually is tail for XP, It's just that Microsoft doesn't install it with the standard version of XP; they packaged it in 'Windows Server 2003 Resource Kit Tools'.
You can get it here: http://www.microsoft.com/downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en
dos's type
works like *nux's cat
, though just like cat, it does dump the whole file, so its not really a true tail, but its going to be available in a pinch without downloading/installing a true tail substitute.
Grab the win32 port of the gnu tools from http://gnuwin32.sourceforge.net/ You'll have a wonderfully working tail -f then. Works on my XP anyway.
I recommend the GNUWin32 utilities over CygWin. They are more "corporate IT friendly". i.e. All the tools are native windows applications that don't require you to install the a dll. (they can be run off a thumb drive or cd without any installation) They are also easier to remove (just delete the folder.) Functionally, the command line tools are indistinguishable from the cygwin versions.
You can find tail in the Core Utils for Windows package.