MORE – Windows CMD Command
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Display output one screen at a time. MORE can be used to run any executable command (or batch file) and pause the screen output one screen at a time. MORE can also be used to TYPE the contents of any file to the screen.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
Syntax command | MORE [/E [/C] [/P] [/S] [/Tn] [+n]] MORE [/E [/C] [/P] [/S] [/Tn] [+n]] < Pathname MORE /E [/C] [/P] [/S] [/Tn] [+n] [Pathname(s)] Key command : Any executable command or batch file Pathname : The file to be displayed. (if more than one separate with spaces) /E : Enable extended features /E /C : Clear screen before displaying page /E /P : Expand FormFeed characters /E /S : Squeeze multiple blank lines into a single line /E /Tn : Expand tabs to n spaces (default 8) /E +n : Start displaying the first file at line n |
You can create an environment variable called %MORE% and use this to supply any of the above switches.
More will convert any TAB characters to spaces in the output.
When MORE is used without any redirection symbols it will display the percent complete e.g.
MORE /E myfile.txt
–More (17%) —
1 2 3 4 5 6 7 8 9 10 |
If extended features are enabled, (/E) the following keystrokes can be used at the -- More -- prompt: <space> Display next page <return> Display next line Q Quit P n Display next n lines S n Skip next n lines F Display next file = Show line number ? Show help line |
In PowerShell use | Out-Host -Paging in preference to MORE, it will start to yield results immediately through the PowerShell pipeline, without waiting first to collect all the incoming data.
1 2 3 4 |
Examples Convert a Unix text file (LF line endings) to Windows text file (CR/LF) TYPE UnixFile.txt | MORE /E /P > WindowsFile.txt |
Great line up. We will be linking to this great article on our site. Keep up the good writing.