Skip navigation

JSI Tip 2626. How do I display and search very large text files?

Most text tools read the whole file into memory when you open it. This degrades performance, specially when you open the file remotely.

List.exe from the Windows 2000 Resource Kit is useful for displaying text or log files remotely because it does not read the whole file into memory. The syntax is:

list \[-s:string\] \[-g:line#\] filename\[, filename, ...\]

Where:

-s:string is the string to search for after opening the file.

-g:line# is the line to go to after opening the file.

filename\[, filename, ...\] is the name of the file(s) to open and display.



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish