0

What would be the best way to chop long lines of output (and do some horizontal scrolling perhaps, but I'm not holding my breath) on Windows, using Windows command-line tools like more. I want to simulate the less -S pager.

grawity
  • 501,077

1 Answers1

1

The good news is that you can use most or all of the Unix-like tools on a Windows machine.

See the GNU page for information and download links.

That is the DOS command-line tools you need!

I'm not sure where I installed mine from, as they are bundled with other things like git for Windows. I will try and add a better link but you should be able to find one if the GNU page doesn't have a direct Windows download.

EDIT It seems the commands are also now included in the Windows Subsystem for Linux (WSL) which is a Windows component you can enable. There's a page here with info about how to enable WSL if you want to do it that way.

EDIT 2 The above assumes a Windows environment, but that may be an incorrect assumption. If you want to do this literally under DOS, there were thinks like the MKS Toollkit that did the same thing, which you might want to try and get hold of.

Reg Edit
  • 4,886