home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Crawly Crypt Collection 1
/
crawlyvol1.bin
/
utility
/
disk
/
tail11
/
tail.1
< prev
next >
Wrap
Text File
|
1991-10-22
|
4KB
|
110 lines
NAME
tail - show last lines of textfile(s)
SYNTAX
tail [-l number] [-s] [-o output] file...
USAGE
'tail' shows the last 10 lines of a textfile. With '-l' you
can modify this, for example
tail -l5 test.txt
shows the last 5 lines of the file 'test.txt'. And
tail -l +5 test.txt
displays the file starting 5 lines from the beginning.
If you specify more than one file or if you supply the '-s'
switch, the name of each file is printed on the standard
output.
The switch '-o' redirects the output to the given file. The
file is overwritten if it exists.
SEE ALSO
head(1)
WILDCARDS
You may use the GEMDOS wildcards ? and * when specifying
filenames. For now they may only occur in the filenamepart,
the last part of a pathname. These wildcards will be
expanded into a sorted list of filenames. For example:
c:\signum\doc\*.*
Expands to all the files in the 'c:\signum\doc' directory. If
a wildcard matches not at least one file, the program is
aborted with the message: "File not found".
Everything within quotes is not expanded, so
'c:\usr\signum\doc\*.*'
is not expanded. As quotes the following characters are
recognized: ', " and %. I've added the last one since some
shells remove quotes when passing a commandline to a
program.
You can use the character ^ to stand for a space, since some
shells have the habit of breaking a word always at a space,
even when it is quoted. So One^Word becomes "One Word" in you
C-program.
ESCAPE MECHANISM
Use the slash (/) to enter controlcodes and other codes that
are difficult to type. A slash also provides a mechanism to
suppress the usual meaning of ?, * and ^. So *.* expands to a
list of filenames but /* is just a asterisk. ^ is normally
converted to a space but /^ is a caret.
The following codes have a special meaning:
/n - linefeed /t - horizontal tab
/r - return /b - backspace
/e - escape /xxx - the character whose decimal code
/^ - caret is xxx, e.g. /65 is 'A'.
/* - asterisk
/? - question mark
All other codes are ignored, so /A is just the letter A. Use
// to enter a single slash.
AUTHOR
A.V. Sijtsma
Telderslaan 23
3527 KD Utrecht
The Netherlands
Fidonet: 2:/281/701.4
If you use this program, please send me a nice postcard. Suggestions,
bug reports etc. are also welcome.
DISCLAIMER
NO GUARANTEE IS GIVEN FOR THE FUNCTIONS
PERFORMED BY THIS SOFTWARE. USE IT AT YOUR
OWN RISK. IF ALL THE DATA ON YOUR SYSTEM
VANISH INTO THIN AIR, IT IS YOUR OWN
RESPONSIBILITY. THE AUTHOR CANNOT BE HELD
RESPONSIBLE FOR ANY USE OF THIS SOFTWARE IN
ANY CONCEIVABLE OR UNCONCEIVABLE WAY.
THIS IS PUBLIC DOMAIN SOFTWARE. FEEL FREE TO
DISTRIBUTE IT. YOU MAY, HOWEVER, CHARGE NO
MONEY APART FROM A SMALL FEE FOR POSTAGE AND
HANDLING. THIS SOFTWARE IS UNSUPPORTED BY ME.
THAT IS: I'VE MADE IT JUST FOR FUN AND HAVE
NO INTENTION OF MAINTAINING IT FOR ANYONE BUT
MYSELF.
IDENTIFICATION
$Id: tail.prf,v 1.1 1991/10/22 21:12:18 LexSijtsma Exp LexSijtsma