HomeSetup Developer Handbook
Standard-Tools
Table of contents
Taylor tool
__hhs_tailor
usage: __hhs_tailor [-F | -f | -r] [-q] [-b # | -c # | -n #] <file>
Notes:
- filename: If not provided, /dev/stdin will be used instead
Purpose
Tail a log using colors and patterns specified on `.tailor’ file.
Returns
0 on success; non-zero otherwise.
Parameters
$1 Required : The log file name.
Examples
__hhs_tailor /var/log/install.log
Output
2023-12-28 16:30:15-03 localhost softwareupdated[93882]: Product 052-14528 is deferred until 2024-03-10 08:00:00 +0000
2023-12-28 16:30:15-03 localhost softwareupdated[93882]: Product 052-14644 is deferred until 2024-03-10 08:00:00 +0000
2023-12-28 16:30:15-03 localhost softwareupdated[93882]: Product 052-15153 is deferred until 2024-03-10 08:00:00 +0000
2023-12-28 16:30:15-03 localhost softwareupdated[93882]: Product 052-23678 is deferred until 2024-03-17 08:00:00 +0000
...
...