Rob van der Woude's Scripting Pages

Help text for Tail.cs

(view help text of Tail.cs as plain text)

Tail,  Version 1.01
Return the specified number of lines from the end of the specified file

Usage:   TAIL  filename  [ option ]
   or:   TAIL  [ option ]  <  filename

Where:   filename   is the file to be read
         /L:n       read the last n Lines (default: 1 line)

Examples:
TAIL  filename                 read the last line (default)
TAIL  filename  /L:5           read the last 5 lines
TAIL  /L:5  <  filename        read the last 5 lines

Check for redirection by Hans Passant on StackOverflow.com/a/3453272
Check file encoding by Jason Pierce on StackOverflow.com/a/19283954

Written by Rob van der Woude
http://www.robvanderwoude.com

page last uploaded: 2022-10-05; loaded in 0.0183 seconds