Displaying 1 result from an estimated 1 matches for "boot_hour_1".
Did you mean:
boot_hour
2010 Apr 23
1
regsubst questions
...nv'', ''/bin/date'', ''+%H:%m'')
notice("boot_time => $boot_time")
$boot_hour = regsubst($boot_time,''^([0-9]+)[:]([0-9]+)\n'',''\1'')
notice("w newline - boot_hour => |$boot_hour|")
$boot_hour_1 = regsubst($boot_time,''^([0-9]+)[:]([0-9]+)'',''\1'')
notice("w/o newline - boot_hour_1 => |$boot_hour_1|")
And the lines from the messages file:
(Scope(Class[main])) boot_time => 09:04
(Scope(Class[main])) w newline - boot_hour => |09|...