Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

DOS utility to display 1st line of all files in directory? (Users)

posted by Doug E-mail, 21.12.2012, 00:26

Will -

Here is a location of the UNIX > DOS utility Head:

  http://reimagery.com/fsfd/unix.htm#uxutl

A little further down the page, after the utility descriptions, you will find download links. Download the file:

  uxutl23b.zip

Unzip it to get the HEAD.EXE file.

Usage:  HEAD [-n] [filespec...]

where:  n  is the number of lines from the file to display.
        filespec  is the specification of files to display.

Must give -n before filespec on command line.

Wildcards (* and/or ?) accepted in/as filespec.

Output can be redirected to file, for example:

  head -1 a:*.* > c:\archive\file.txt

Does not accept slash / as switch character (must use dash -).

Does not pause scrolling after a screenful of display -- must use MORE or somesuch filter to pause, for example:

  head -1 a:*.* | more

- Doug B.

 

Complete thread:

Back to the forum
Board view  Mix view
22762 Postings in 2122 Threads, 402 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum