home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
HEAD.ZIP
/
HEAD.DOC
next >
Wrap
Text File
|
1991-09-07
|
3KB
|
86 lines
HEAD 1.00
---------
Purpose
-------
Display head (first n lines) or tail (last n lines) of a file or
files. HEAD is a bound character mode (non-PM) application for DOS
and OS/2.
HEAD is for ASCII text files only. Text lines are assumed not to
exceed 500 characters in length.
Usage
-----
To use HEAD:
head [/#fhnt] filespec {filespec}
The filespecs are the names of the files to be displayed. At least
one and up to twenty names may be given. The names may include
paths and wildcards.
Specify the options:
/# Set number of lines to be displayed. The default is 1
(i.e., only the first or last line of the file).
/f Display full text of lines. Normally, HEAD truncates
lines to the current screen width to prevent wraparound.
/h Display a header for each file (the filename).
/n Display the line number for each line.
/t Display tail of file instead of head.
Options may be specified separately or together:
head /h /t *.c
head /ht *.c
head /h/t *.c
Order and case are not significant. '-' may be used as the option
character instead of '/'. These are all the same:
head /ht *.c
head *.c /h -T
head -T *.c -H
head *.c -HT
Examples
--------
head *.c
Display first line of each C file in the current directory.
head /3 *.c
Display first three lines of each C file in the current
directory.
head /t *.c g:\foo\*.c
Display last line of each C file in the current directory and in
G:\FOO.
head /htn *.c
Display last line of each C file in the current directory;
display names of files and include line numbers.
head /hftn *.c
Same as above, but do not truncate lines longer than the current
screen width.
------------------------
This version of HEAD was written (in a hurry) by:
Chris Dunford
The Cove Software Group
PO Box 1072
Columbia, MD 21044
301/992-9371
CompuServe 76703,2002
The program is uncopyrighted (public domain). There is no warranty,
express or implied.