I want to print the output of a program in MS-DOS so I wrote a .bat file that says:
cls
ruby foo.rb
But the output - as it appears on my command prompt - looks like this:
c:\workspace>ruby foo.rb
foo output
c:\workspace>
I wanted to insert a newline into the output using MS-DOS because I don't want to pollute my Ruby code with anything not related to what the code is supposed to be doing.
The only commands in MS-DOS that look like what I want are 'type' and 'print' but both are for printing files.
I tried creating a text file with two blank lines and outputting it using the 'type' command but it looks messy.
Any ideas would be appreciated.