0 Votes

last 100 lines of chocolatey.log file
Log In or Register to download the BES file, and more.


Relevance

 
  * Results in a "string"/number
Show indented relevance
(item 1 of /* -> This "it" refers to the last 100 lines of the file -> */ it) whose( /* -> remove empty lines, which is why this relevance can return less than 100 lines per file -> */ it as trimmed string != "") of ( /* -> this is the number of lines of the file from the previous statement -> */ item 1 of it, (lines of /* -> the file object -> */ item 0 of it) ) /* -> This whose statement is responsible for filtering for only the last 100 lines of the file -> */ whose ( (line number of /* -> lines of the file -> */ item 1 of it) > ( /* -> number of lines of the file -> */ item 0 of it - 100 /* <- This is the number of lines to return, which is subtracted from the total # of lines <- */ ) ) of ( /* -> the parent file object itself -> */ it, number of lines of it) of files "chocolatey.log" of folders "logs" of (folder it) of unique values of pathnames of ( ( (folder it) of unique values of (it as string as trimmed string) of values "ChocolateyInstall" of keys "Control\Session Manager\Environment" of keys whose(name of it contains "ControlSet") of keys "HKEY_LOCAL_MACHINE\SYSTEM" of (x64 registries;x32 registries) );( parent folders of (folder it) of unique values of (substrings separated by ";" of it) whose(it as lowercase contains "choco") of unique values of (it as string as trimmed string) of values "Path" of keys "Control\Session Manager\Environment" of keys whose(name of it contains "ControlSet") of keys "HKEY_LOCAL_MACHINE\SYSTEM" of (x64 registries;x32 registries) ) )

Property Details

ID3002375
Status
Titlelast 100 lines of chocolatey.log file
Added by
Last Modified by on 6/4/2015 11:07:32 AM
Counters 2 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Sharing

Relevance Image Sharing:

<a href='https://bigfix.me/cdb/relevance/3002375'><img src='https://bigfix.me/cdb/relevanceimage/3002375?width=400' border='0'></a>
Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!
jgstew -
This is a useful example to see how to get the last 100 lines of a log file.