lucee.Component
commandbox.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
|
printUtil
|
true
|
false
|
|
| Method Summary | |
|---|---|
private any
|
cleanLine([any line])
|
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 - printserializable - true| Method Detail |
|---|
linepath - 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