lucee.Componentcommandbox.system.modules_app.system-commands.commands.tail
Tail the end of a file from the filesystem. Path may be absolute or relative to the current working directory. . {code:bash} tail file.txt {code} Displays the contents of a file to standard CommandBox output according to the number of lines argument. . Use the "lines" param to specify the number of lines to display, or it defaults to 15 lines. . {code:bash} tail file.txt 100 {code}
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
ansiFormater
|
true
|
false
|
|
any
|
printUtil
|
true
|
false
|
Method Summary | |
---|---|
any
|
findStartPos()
|
any
|
run(any path, [numeric lines='15'], [boolean follow='false'])
|
Methods inherited from class lucee.Component |
---|
None |
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anyinject
- AnsiFormaterserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- printserializable
- trueMethod Detail |
---|
path
- file or directory to tail or raw input to processlines
- number of lines to display.follow
- Keep outputting new lines to the file until Ctrl-C is pressed