|
|
|
@ -806,7 +806,7 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mExample[0m
|
|
|
|
|
#1 To create a table named 'task_durations' that matches log messages with the pattern
|
|
|
|
|
'duration=(?<duration>\d+)':
|
|
|
|
|
[37m[40m:[0m[1m[36m[40mcreate-search-table[0m[37m[40m task_durations duration=[0m[1m[32m[40m([0m[1m[32m[40m?<[0m[37m[40mduration[0m[37m[40m>[0m[1m[37m[40m\d[0m[1m[36m[40m+[0m[1m[32m[40m)[0m
|
|
|
|
|
[37m[40m:[0m[1m[36m[40mcreate-search-table[0m[37m[40m task_durations duration=[0m[1m[32m[40m([0m[1m[32m[40m?[0m[1m[36m[40m<[0m[37m[40mduration[0m[1m[36m[40m>[0m[1m[37m[40m\d[0m[1m[36m[40m+[0m[1m[32m[40m)[0m
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1957,13 +1957,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mX[0m The unicode code point values
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m,
|
|
|
|
|
[1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m,
|
|
|
|
|
[1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m, [1mregexp_match()[0m,
|
|
|
|
|
[1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m,
|
|
|
|
|
[1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m,
|
|
|
|
|
[1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExample[0m
|
|
|
|
|
#1 To get a string with the code points 0x48 and 0x49:
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mchar[0m[37m[40m([0m[1m[37m[40m0[0m[37m[40mx48[0m[37m[40m, [0m[1m[37m[40m0[0m[37m[40mx49[0m[37m[40m) [0m
|
|
|
|
@ -1982,12 +1982,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
start the search
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m, [1mgroup_spooky_hash()[0m,
|
|
|
|
|
[1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m,
|
|
|
|
|
[1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m,
|
|
|
|
|
[1mproper()[0m, [1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m, [1mregexp_match()[0m,
|
|
|
|
|
[1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m,
|
|
|
|
|
[1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m,
|
|
|
|
|
[1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To search for the string 'abc' within 'abcabc' and starting at position 2:
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mcharindex[0m[37m[40m([0m[35m[40m'abc'[0m[37m[40m, [0m[35m[40m'abcabc'[0m[37m[40m, [0m[1m[37m[40m2[0m[37m[40m) [0m
|
|
|
|
@ -2044,7 +2045,8 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mmodifier[0m A transformation that is applied to the
|
|
|
|
|
value to the left.
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mdatetime()[0m, [1mjulianday()[0m, [1mstrftime()[0m, [1mtime()[0m, [1mtimediff()[0m, [1mtimeslice()[0m
|
|
|
|
|
[1mdatetime()[0m, [1mhumanize_duration()[0m, [1mjulianday()[0m, [1mstrftime()[0m, [1mtime()[0m,
|
|
|
|
|
[1mtimediff()[0m, [1mtimeslice()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To get the date portion of the timestamp '2017-01-02T03:04:05':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mdate[0m[37m[40m([0m[35m[40m'2017-01-02T03:04:05'[0m[37m[40m) [0m
|
|
|
|
@ -2067,7 +2069,8 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mmodifier[0m A transformation that is applied to the
|
|
|
|
|
value to the left.
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mdate()[0m, [1mjulianday()[0m, [1mstrftime()[0m, [1mtime()[0m, [1mtimediff()[0m, [1mtimeslice()[0m
|
|
|
|
|
[1mdate()[0m, [1mhumanize_duration()[0m, [1mjulianday()[0m, [1mstrftime()[0m, [1mtime()[0m,
|
|
|
|
|
[1mtimediff()[0m, [1mtimeslice()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To get the date and time portion of the timestamp '2017-01-02T03:04:05':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mdatetime[0m[37m[40m([0m[35m[40m'2017-01-02T03:04:05'[0m[37m[40m) [0m
|
|
|
|
@ -2143,12 +2146,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4msuffix[0m The suffix to check in the string
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mextract()[0m, [1mgroup_concat()[0m, [1mgroup_spooky_hash()[0m,
|
|
|
|
|
[1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m,
|
|
|
|
|
[1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m,
|
|
|
|
|
[1mproper()[0m, [1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m, [1mregexp_match()[0m,
|
|
|
|
|
[1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m,
|
|
|
|
|
[1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m,
|
|
|
|
|
[1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To test if the string 'notbad.jpg' ends with '.jpg':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mendswith[0m[37m[40m([0m[35m[40m'notbad.jpg'[0m[37m[40m, [0m[35m[40m'.jpg'[0m[37m[40m) [0m
|
|
|
|
@ -2182,12 +2186,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mstr[0m The string to parse
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mgroup_concat()[0m, [1mgroup_spooky_hash()[0m,
|
|
|
|
|
[1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m,
|
|
|
|
|
[1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m,
|
|
|
|
|
[1mproper()[0m, [1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m, [1mregexp_match()[0m,
|
|
|
|
|
[1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m,
|
|
|
|
|
[1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m,
|
|
|
|
|
[1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To extract key/value pairs from a string:
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mextract[0m[37m[40m([0m[35m[40m'foo=1 bar=2 name="Rolo Tomassi"'[0m[37m[40m) [0m
|
|
|
|
@ -2296,12 +2301,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4msep[0m The separator to place between the values.
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_spooky_hash()[0m,
|
|
|
|
|
[1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m,
|
|
|
|
|
[1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m,
|
|
|
|
|
[1mproper()[0m, [1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m, [1mregexp_match()[0m,
|
|
|
|
|
[1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m,
|
|
|
|
|
[1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m,
|
|
|
|
|
[1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To concatenate the values of the column 'ex_procname' from the table
|
|
|
|
|
'lnav_example_log':
|
|
|
|
@ -2325,12 +2331,12 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mstr[0m The string to hash
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m, [1mgunzip()[0m,
|
|
|
|
|
[1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m,
|
|
|
|
|
[1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m,
|
|
|
|
|
[1mproper()[0m, [1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m, [1mregexp_match()[0m,
|
|
|
|
|
[1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m,
|
|
|
|
|
[1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m,
|
|
|
|
|
[1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[1mgzip()[0m, [1mhumanize_duration()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m,
|
|
|
|
|
[1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m,
|
|
|
|
|
[1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m,
|
|
|
|
|
[1mregexp_match()[0m, [1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m,
|
|
|
|
|
[1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m,
|
|
|
|
|
[1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExample[0m
|
|
|
|
|
#1 To produce a hash of all of the values of 'column1':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mgroup_spooky_hash[0m[37m[40m([0m[37m[40mcolumn1[0m[37m[40m) [0m[1m[36m[40mFROM[0m[37m[40m ([0m[1m[36m[40mVALUES[0m[37m[40m ([0m[35m[40m'abc'[0m[37m[40m), ([0m[35m[40m'123'[0m[37m[40m))[0m
|
|
|
|
@ -2344,12 +2350,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mb[0m The blob to decompress
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m,
|
|
|
|
|
[1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m,
|
|
|
|
|
[1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m,
|
|
|
|
|
[1mregexp_match()[0m, [1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m,
|
|
|
|
|
[1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m,
|
|
|
|
|
[1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m, [1mhumanize_file_size()[0m,
|
|
|
|
|
[1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m,
|
|
|
|
|
[1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
|
|
|
|
|
[1m[4mgzip[0m[4m([0m[4mvalue[0m[4m, ...)[0m
|
|
|
|
|
══════════════════════════════════════════════════════════════════════
|
|
|
|
@ -2358,13 +2365,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mvalue[0m The value to compress
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m,
|
|
|
|
|
[1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m,
|
|
|
|
|
[1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m, [1mregexp_match()[0m,
|
|
|
|
|
[1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m,
|
|
|
|
|
[1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m,
|
|
|
|
|
[1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
|
|
|
|
|
[1m[4mhex[0m[4m([0m[4mX[0m[4m)[0m
|
|
|
|
|
══════════════════════════════════════════════════════════════════════
|
|
|
|
@ -2379,19 +2386,45 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[1m[4mhumanize_file_size[0m[4m([0m[4mvalue[0m[4m)[0m
|
|
|
|
|
[1m[4mhumanize_duration[0m[4m([0m[4msecs[0m[4m)[0m
|
|
|
|
|
══════════════════════════════════════════════════════════════════════
|
|
|
|
|
Format the given file size as a human-friendly string
|
|
|
|
|
Format the given seconds value as an abbreviated duration string
|
|
|
|
|
[4mParameter[0m
|
|
|
|
|
[4mvalue[0m The file size to format
|
|
|
|
|
[4msecs[0m The duration in seconds
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m,
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mdate()[0m, [1mdatetime()[0m, [1mendswith()[0m, [1mextract()[0m,
|
|
|
|
|
[1mgroup_concat()[0m, [1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mjulianday()[0m, [1mleftstr()[0m, [1mlength()[0m,
|
|
|
|
|
[1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m,
|
|
|
|
|
[1mproper()[0m, [1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m, [1mregexp_match()[0m,
|
|
|
|
|
[1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m,
|
|
|
|
|
[1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m,
|
|
|
|
|
[1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[1mstrftime()[0m, [1msubstr()[0m, [1mtime()[0m, [1mtimediff()[0m, [1mtimeslice()[0m, [1mtrim()[0m,
|
|
|
|
|
[1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To format a duration:
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mhumanize_duration[0m[37m[40m([0m[1m[37m[40m15[0m[37m[40m [0m[1m[37m[40m*[0m[37m[40m [0m[1m[37m[40m60[0m[37m[40m) [0m
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#2 To format a sub-second value:
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mhumanize_duration[0m[37m[40m([0m[1m[37m[40m1.5[0m[37m[40m) [0m
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[1m[4mhumanize_file_size[0m[4m([0m[4mvalue[0m[4m)[0m
|
|
|
|
|
══════════════════════════════════════════════════════════════════════
|
|
|
|
|
Format the given file size as a human-friendly string
|
|
|
|
|
[4mParameter[0m
|
|
|
|
|
[4mvalue[0m The file size to format
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExample[0m
|
|
|
|
|
#1 To format an amount:
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mhumanize_file_size[0m[37m[40m([0m[1m[37m[40m10[0m[37m[40m [0m[1m[37m[40m*[0m[37m[40m [0m[1m[37m[40m1024[0m[37m[40m [0m[1m[37m[40m*[0m[37m[40m [0m[1m[37m[40m1024[0m[37m[40m) [0m
|
|
|
|
@ -2422,12 +2455,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mneedle[0m The string to look for in the haystack
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1mleftstr()[0m,
|
|
|
|
|
[1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m,
|
|
|
|
|
[1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m,
|
|
|
|
|
[1mregexp_match()[0m, [1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m,
|
|
|
|
|
[1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m,
|
|
|
|
|
[1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m,
|
|
|
|
|
[1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExample[0m
|
|
|
|
|
#1 To test get the position of 'b' in the string 'abc':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40minstr[0m[37m[40m([0m[35m[40m'abc'[0m[37m[40m, [0m[35m[40m'b'[0m[37m[40m) [0m
|
|
|
|
@ -2575,7 +2609,8 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mmodifier[0m A transformation that is applied to the
|
|
|
|
|
value to the left.
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mdate()[0m, [1mdatetime()[0m, [1mstrftime()[0m, [1mtime()[0m, [1mtimediff()[0m, [1mtimeslice()[0m
|
|
|
|
|
[1mdate()[0m, [1mdatetime()[0m, [1mhumanize_duration()[0m, [1mstrftime()[0m, [1mtime()[0m,
|
|
|
|
|
[1mtimediff()[0m, [1mtimeslice()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To get the julian day from the timestamp '2017-01-02T03:04:05':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mjulianday[0m[37m[40m([0m[35m[40m'2017-01-02T03:04:05'[0m[37m[40m) [0m
|
|
|
|
@ -2641,12 +2676,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
string to return.
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m,
|
|
|
|
|
[1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m,
|
|
|
|
|
[1mregexp_match()[0m, [1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m,
|
|
|
|
|
[1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m,
|
|
|
|
|
[1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m,
|
|
|
|
|
[1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To get the first character of the string 'abc':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mleftstr[0m[37m[40m([0m[35m[40m'abc'[0m[37m[40m, [0m[1m[37m[40m1[0m[37m[40m) [0m
|
|
|
|
@ -2665,12 +2701,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mstr[0m The string to determine the length of
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m,
|
|
|
|
|
[1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m,
|
|
|
|
|
[1mregexp_match()[0m, [1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m,
|
|
|
|
|
[1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m,
|
|
|
|
|
[1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlogfmt2json()[0m, [1mlower()[0m,
|
|
|
|
|
[1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExample[0m
|
|
|
|
|
#1 To get the length of the string 'abc':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mlength[0m[37m[40m([0m[35m[40m'abc'[0m[37m[40m) [0m
|
|
|
|
@ -2784,12 +2821,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mstr[0m The logfmt message to parse
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m,
|
|
|
|
|
[1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m,
|
|
|
|
|
[1mregexp_match()[0m, [1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m,
|
|
|
|
|
[1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m,
|
|
|
|
|
[1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlower()[0m, [1mltrim()[0m,
|
|
|
|
|
[1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExample[0m
|
|
|
|
|
#1 To extract key/value pairs from a log message:
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mlogfmt2json[0m[37m[40m([0m[35m[40m'foo=1 bar=2 name="Rolo Tomassi"'[0m[37m[40m)[0m
|
|
|
|
@ -2804,12 +2842,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mstr[0m The string to convert.
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m,
|
|
|
|
|
[1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m,
|
|
|
|
|
[1mregexp_match()[0m, [1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m,
|
|
|
|
|
[1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m,
|
|
|
|
|
[1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m,
|
|
|
|
|
[1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExample[0m
|
|
|
|
|
#1 To lowercase the string 'AbC':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mlower[0m[37m[40m([0m[35m[40m'AbC'[0m[37m[40m) [0m
|
|
|
|
@ -2825,12 +2864,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mchars[0m The characters to trim. Defaults to spaces.
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m,
|
|
|
|
|
[1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m,
|
|
|
|
|
[1mregexp_match()[0m, [1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m,
|
|
|
|
|
[1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m,
|
|
|
|
|
[1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m,
|
|
|
|
|
[1mlower()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To trim the leading whitespace from the string ' abc':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mltrim[0m[37m[40m([0m[35m[40m' abc'[0m[37m[40m) [0m
|
|
|
|
@ -2932,12 +2972,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mlen[0m The minimum desired length of the output string
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadl()[0m, [1mpadr()[0m,
|
|
|
|
|
[1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m,
|
|
|
|
|
[1mregexp_match()[0m, [1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m,
|
|
|
|
|
[1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m,
|
|
|
|
|
[1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m,
|
|
|
|
|
[1mlower()[0m, [1mltrim()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To pad the string 'abc' to a length of six characters:
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mpadc[0m[37m[40m([0m[35m[40m'abc'[0m[37m[40m, [0m[1m[37m[40m6[0m[37m[40m) [0m[1m[37m[40m||[0m[37m[40m [0m[35m[40m'def'[0m[37m[40m [0m
|
|
|
|
@ -2957,12 +2998,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mlen[0m The minimum desired length of the output string
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadr()[0m,
|
|
|
|
|
[1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m,
|
|
|
|
|
[1mregexp_match()[0m, [1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m,
|
|
|
|
|
[1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m,
|
|
|
|
|
[1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m,
|
|
|
|
|
[1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To pad the string 'abc' to a length of six characters:
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mpadl[0m[37m[40m([0m[35m[40m'abc'[0m[37m[40m, [0m[1m[37m[40m6[0m[37m[40m) [0m
|
|
|
|
@ -2982,12 +3024,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mlen[0m The minimum desired length of the output string
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m,
|
|
|
|
|
[1mregexp_match()[0m, [1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m,
|
|
|
|
|
[1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m,
|
|
|
|
|
[1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m,
|
|
|
|
|
[1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To pad the string 'abc' to a length of six characters:
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mpadr[0m[37m[40m([0m[35m[40m'abc'[0m[37m[40m, [0m[1m[37m[40m6[0m[37m[40m) [0m[1m[37m[40m||[0m[37m[40m [0m[35m[40m'def'[0m[37m[40m [0m
|
|
|
|
@ -3047,12 +3090,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
the format.
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mpadr()[0m, [1mproper()[0m, [1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m,
|
|
|
|
|
[1mregexp_match()[0m, [1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m,
|
|
|
|
|
[1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m,
|
|
|
|
|
[1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m,
|
|
|
|
|
[1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To substitute 'World' into the string 'Hello, %s!':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mprintf[0m[37m[40m([0m[35m[40m'Hello, %s!'[0m[37m[40m, [0m[35m[40m'World'[0m[37m[40m) [0m
|
|
|
|
@ -3074,12 +3118,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mstr[0m The string to capitalize.
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mpadr()[0m, [1mprintf()[0m, [1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m,
|
|
|
|
|
[1mregexp_match()[0m, [1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m,
|
|
|
|
|
[1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m,
|
|
|
|
|
[1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m,
|
|
|
|
|
[1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExample[0m
|
|
|
|
|
#1 To capitalize the words in the string 'hello, world!':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mproper[0m[37m[40m([0m[35m[40m'hello, world!'[0m[37m[40m) [0m
|
|
|
|
@ -3196,12 +3241,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mcontent[0m The captured value from the string.
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture_into_json()[0m, [1mregexp_match()[0m,
|
|
|
|
|
[1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m,
|
|
|
|
|
[1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m,
|
|
|
|
|
[1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m,
|
|
|
|
|
[1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExample[0m
|
|
|
|
|
#1 To extract the key/value pairs 'a'/1 and 'b'/2 from the string 'a=1; b=2':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40m*[0m[37m[40m [0m[1m[36m[40mFROM[0m[37m[40m [0m[1m[37m[40mregexp_capture[0m[37m[40m([0m[35m[40m'a=1; b=2'[0m[37m[40m, [0m[35m[40m'(\w+)=(\d+)'[0m[37m[40m)[0m
|
|
|
|
@ -3224,12 +3270,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mcontent[0m The captured values from the string.
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m, [1mregexp_match()[0m,
|
|
|
|
|
[1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m,
|
|
|
|
|
[1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m,
|
|
|
|
|
[1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m,
|
|
|
|
|
[1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m,
|
|
|
|
|
[1mregexp_capture()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m, [1mreplace()[0m,
|
|
|
|
|
[1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExample[0m
|
|
|
|
|
#1 To extract the key/value pairs 'a'/1 and 'b'/2 from the string 'a=1; b=2':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40m*[0m[37m[40m [0m[1m[36m[40mFROM[0m[37m[40m [0m[1m[37m[40mregexp_capture_into_json[0m[37m[40m([0m[35m[40m'a=1; b=2'[0m[37m[40m, [0m[35m[40m'(\w+)=(\d+)'[0m[37m[40m)[0m
|
|
|
|
@ -3245,13 +3292,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mstr[0m The string to test against the regular expression
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_replace()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m,
|
|
|
|
|
[1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m,
|
|
|
|
|
[1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m,
|
|
|
|
|
[1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m,
|
|
|
|
|
[1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To capture the digits from the string '123':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mregexp_match[0m[37m[40m([0m[35m[40m'(\d+)'[0m[37m[40m, [0m[35m[40m'123'[0m[37m[40m) [0m
|
|
|
|
@ -3279,13 +3326,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
starting with 1.
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_match()[0m, [1mreplace()[0m,
|
|
|
|
|
[1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m,
|
|
|
|
|
[1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m,
|
|
|
|
|
[1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m, [1mregexp_match()[0m,
|
|
|
|
|
[1mregexp_match()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m,
|
|
|
|
|
[1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m,
|
|
|
|
|
[1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To replace the word at the start of the string 'Hello, World!' with 'Goodbye':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mregexp_replace[0m[37m[40m([0m[35m[40m'Hello, World!'[0m[37m[40m, [0m[35m[40m'^(\w+)'[0m[37m[40m, [0m[35m[40m'Goodbye'[0m[37m[40m)[0m
|
|
|
|
@ -3307,13 +3354,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
the old string with.
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m,
|
|
|
|
|
[1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m,
|
|
|
|
|
[1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m, [1mregexp_match()[0m,
|
|
|
|
|
[1mregexp_replace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m,
|
|
|
|
|
[1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m,
|
|
|
|
|
[1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To replace the string 'x' with 'z' in 'abc':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[36m[40mreplace[0m[37m[40m([0m[35m[40m'abc'[0m[37m[40m, [0m[35m[40m'x'[0m[37m[40m, [0m[35m[40m'z'[0m[37m[40m) [0m
|
|
|
|
@ -3332,13 +3379,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mN[0m The number of times to replicate the string.
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m,
|
|
|
|
|
[1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m,
|
|
|
|
|
[1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m,
|
|
|
|
|
[1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m,
|
|
|
|
|
[1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m, [1mregexp_match()[0m,
|
|
|
|
|
[1mregexp_replace()[0m, [1mreplace()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m,
|
|
|
|
|
[1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m,
|
|
|
|
|
[1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExample[0m
|
|
|
|
|
#1 To repeat the string 'abc' three times:
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mreplicate[0m[37m[40m([0m[35m[40m'abc'[0m[37m[40m, [0m[1m[37m[40m3[0m[37m[40m) [0m
|
|
|
|
@ -3352,13 +3399,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mstr[0m The string to reverse.
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m,
|
|
|
|
|
[1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m,
|
|
|
|
|
[1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m, [1mregexp_match()[0m,
|
|
|
|
|
[1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mrightstr()[0m, [1mrtrim()[0m,
|
|
|
|
|
[1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m,
|
|
|
|
|
[1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExample[0m
|
|
|
|
|
#1 To reverse the string 'abc':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mreverse[0m[37m[40m([0m[35m[40m'abc'[0m[37m[40m) [0m
|
|
|
|
@ -3374,13 +3421,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
string to return.
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m,
|
|
|
|
|
[1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m,
|
|
|
|
|
[1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m,
|
|
|
|
|
[1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m,
|
|
|
|
|
[1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m, [1mregexp_match()[0m,
|
|
|
|
|
[1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrtrim()[0m,
|
|
|
|
|
[1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m,
|
|
|
|
|
[1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To get the last character of the string 'abc':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mrightstr[0m[37m[40m([0m[35m[40m'abc'[0m[37m[40m, [0m[1m[37m[40m1[0m[37m[40m) [0m
|
|
|
|
@ -3441,13 +3488,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mchars[0m The characters to trim. Defaults to spaces.
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m,
|
|
|
|
|
[1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m,
|
|
|
|
|
[1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m, [1mregexp_match()[0m,
|
|
|
|
|
[1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m,
|
|
|
|
|
[1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m,
|
|
|
|
|
[1mtrim()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To trim the whitespace from the end of the string 'abc ':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mrtrim[0m[37m[40m([0m[35m[40m'abc '[0m[37m[40m) [0m
|
|
|
|
@ -3495,13 +3542,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
version uses the largest value in the inputs.
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1mspooky_hash()[0m,
|
|
|
|
|
[1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m,
|
|
|
|
|
[1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m,
|
|
|
|
|
[1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m,
|
|
|
|
|
[1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m, [1mregexp_match()[0m,
|
|
|
|
|
[1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m,
|
|
|
|
|
[1mrtrim()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m,
|
|
|
|
|
[1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To get the unicode block element for the value 32 in the range of 0-128:
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40msparkline[0m[37m[40m([0m[1m[37m[40m32[0m[37m[40m, [0m[1m[37m[40m128[0m[37m[40m) [0m
|
|
|
|
@ -3519,13 +3566,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mstr[0m The string to hash
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m,
|
|
|
|
|
[1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m,
|
|
|
|
|
[1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m,
|
|
|
|
|
[1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m, [1mregexp_match()[0m,
|
|
|
|
|
[1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m,
|
|
|
|
|
[1mrtrim()[0m, [1msparkline()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m,
|
|
|
|
|
[1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To produce a hash for the string 'Hello, World!':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mspooky_hash[0m[37m[40m([0m[35m[40m'Hello, World!'[0m[37m[40m) [0m
|
|
|
|
@ -3600,13 +3647,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mprefix[0m The prefix to check in the string
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m,
|
|
|
|
|
[1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m,
|
|
|
|
|
[1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m,
|
|
|
|
|
[1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m, [1mregexp_match()[0m,
|
|
|
|
|
[1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m,
|
|
|
|
|
[1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m,
|
|
|
|
|
[1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To test if the string 'foobar' starts with 'foo':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mstartswith[0m[37m[40m([0m[35m[40m'foobar'[0m[37m[40m, [0m[35m[40m'foo'[0m[37m[40m) [0m
|
|
|
|
@ -3626,13 +3673,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4minclude[0m The characters to include in the result
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m,
|
|
|
|
|
[1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m,
|
|
|
|
|
[1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m,
|
|
|
|
|
[1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m, [1mregexp_match()[0m,
|
|
|
|
|
[1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m,
|
|
|
|
|
[1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m, [1msubstr()[0m, [1mtrim()[0m,
|
|
|
|
|
[1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExample[0m
|
|
|
|
|
#1 To get the 'b', 'c', and 'd' characters from the string 'abcabc':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mstrfilter[0m[37m[40m([0m[35m[40m'abcabc'[0m[37m[40m, [0m[35m[40m'bcd'[0m[37m[40m) [0m
|
|
|
|
@ -3650,7 +3697,8 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mmodifier[0m A transformation that is applied to the
|
|
|
|
|
value to the left.
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mdate()[0m, [1mdatetime()[0m, [1mjulianday()[0m, [1mtime()[0m, [1mtimediff()[0m, [1mtimeslice()[0m
|
|
|
|
|
[1mdate()[0m, [1mdatetime()[0m, [1mhumanize_duration()[0m, [1mjulianday()[0m, [1mtime()[0m,
|
|
|
|
|
[1mtimediff()[0m, [1mtimeslice()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To get the year from the timestamp '2017-01-02T03:04:05':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mstrftime[0m[37m[40m([0m[35m[40m'%Y'[0m[37m[40m, [0m[35m[40m'2017-01-02T03:04:05'[0m[37m[40m) [0m
|
|
|
|
@ -3682,13 +3730,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
are returned.
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m,
|
|
|
|
|
[1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m,
|
|
|
|
|
[1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m,
|
|
|
|
|
[1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m, [1mregexp_match()[0m,
|
|
|
|
|
[1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m,
|
|
|
|
|
[1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1mtrim()[0m,
|
|
|
|
|
[1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To get the substring starting at the second character until the end of the string
|
|
|
|
|
'abc':
|
|
|
|
@ -3736,7 +3784,8 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mmodifier[0m A transformation that is applied to the
|
|
|
|
|
value to the left.
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mdate()[0m, [1mdatetime()[0m, [1mjulianday()[0m, [1mstrftime()[0m, [1mtimediff()[0m, [1mtimeslice()[0m
|
|
|
|
|
[1mdate()[0m, [1mdatetime()[0m, [1mhumanize_duration()[0m, [1mjulianday()[0m, [1mstrftime()[0m,
|
|
|
|
|
[1mtimediff()[0m, [1mtimeslice()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To get the time portion of the timestamp '2017-01-02T03:04:05':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mtime[0m[37m[40m([0m[35m[40m'2017-01-02T03:04:05'[0m[37m[40m) [0m
|
|
|
|
@ -3758,7 +3807,8 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mtime1[0m The first timestamp
|
|
|
|
|
[4mtime2[0m The timestamp to subtract from the first
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mdate()[0m, [1mdatetime()[0m, [1mjulianday()[0m, [1mstrftime()[0m, [1mtime()[0m, [1mtimeslice()[0m
|
|
|
|
|
[1mdate()[0m, [1mdatetime()[0m, [1mhumanize_duration()[0m, [1mjulianday()[0m, [1mstrftime()[0m,
|
|
|
|
|
[1mtime()[0m, [1mtimeslice()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To get the difference between two timestamps:
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mtimediff[0m[37m[40m([0m[35m[40m'2017-02-03T04:05:06'[0m[37m[40m, [0m[35m[40m'2017-02-03T04:05:00'[0m[37m[40m)[0m
|
|
|
|
@ -3777,7 +3827,8 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mtime[0m The timestamp to get the time slice for.
|
|
|
|
|
[4mslice[0m The size of the time slices
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mdate()[0m, [1mdatetime()[0m, [1mjulianday()[0m, [1mstrftime()[0m, [1mtime()[0m, [1mtimediff()[0m
|
|
|
|
|
[1mdate()[0m, [1mdatetime()[0m, [1mhumanize_duration()[0m, [1mjulianday()[0m, [1mstrftime()[0m,
|
|
|
|
|
[1mtime()[0m, [1mtimediff()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To get the timestamp rounded down to the start of the ten minute slice:
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mtimeslice[0m[37m[40m([0m[35m[40m'2017-01-01T05:05:00'[0m[37m[40m, [0m[35m[40m'10m'[0m[37m[40m) [0m
|
|
|
|
@ -3828,13 +3879,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mchars[0m The characters to trim. Defaults to spaces.
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1municode()[0m, [1mupper()[0m,
|
|
|
|
|
[1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m,
|
|
|
|
|
[1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m,
|
|
|
|
|
[1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m, [1mregexp_match()[0m,
|
|
|
|
|
[1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m,
|
|
|
|
|
[1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m,
|
|
|
|
|
[1msubstr()[0m, [1municode()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To trim whitespace from the start and end of the string ' abc ':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mtrim[0m[37m[40m([0m[35m[40m' abc '[0m[37m[40m) [0m
|
|
|
|
@ -3870,13 +3921,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mX[0m The string to examine.
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1mupper()[0m,
|
|
|
|
|
[1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m,
|
|
|
|
|
[1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m,
|
|
|
|
|
[1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m, [1mregexp_match()[0m,
|
|
|
|
|
[1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m,
|
|
|
|
|
[1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m,
|
|
|
|
|
[1msubstr()[0m, [1mtrim()[0m, [1mupper()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExample[0m
|
|
|
|
|
#1 To get the unicode code point for the first character of 'abc':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40municode[0m[37m[40m([0m[35m[40m'abc'[0m[37m[40m) [0m
|
|
|
|
@ -3898,13 +3949,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mstr[0m The string to convert.
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mxpath()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m,
|
|
|
|
|
[1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m,
|
|
|
|
|
[1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m, [1mregexp_match()[0m,
|
|
|
|
|
[1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m,
|
|
|
|
|
[1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m,
|
|
|
|
|
[1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mxpath()[0m
|
|
|
|
|
[4mExample[0m
|
|
|
|
|
#1 To uppercase the string 'aBc':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40mupper[0m[37m[40m([0m[35m[40m'aBc'[0m[37m[40m) [0m
|
|
|
|
@ -3927,13 +3978,13 @@ lnav@googlegroups.com[1] support@lnav.org[2]
|
|
|
|
|
[4mnode_text[0m The node's text value.
|
|
|
|
|
[4mSee Also[0m
|
|
|
|
|
[1mchar()[0m, [1mcharindex()[0m, [1mendswith()[0m, [1mextract()[0m, [1mgroup_concat()[0m,
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_file_size()[0m, [1minstr()[0m,
|
|
|
|
|
[1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m, [1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m,
|
|
|
|
|
[1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m, [1mregexp_capture()[0m,
|
|
|
|
|
[1mregexp_capture_into_json()[0m, [1mregexp_match()[0m, [1mregexp_replace()[0m,
|
|
|
|
|
[1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m, [1mrtrim()[0m, [1msparkline()[0m,
|
|
|
|
|
[1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m, [1msubstr()[0m, [1mtrim()[0m, [1municode()[0m,
|
|
|
|
|
[1mupper()[0m
|
|
|
|
|
[1mgroup_spooky_hash()[0m, [1mgunzip()[0m, [1mgzip()[0m, [1mhumanize_duration()[0m,
|
|
|
|
|
[1mhumanize_file_size()[0m, [1minstr()[0m, [1mleftstr()[0m, [1mlength()[0m, [1mlogfmt2json()[0m,
|
|
|
|
|
[1mlower()[0m, [1mltrim()[0m, [1mpadc()[0m, [1mpadl()[0m, [1mpadr()[0m, [1mprintf()[0m, [1mproper()[0m,
|
|
|
|
|
[1mregexp_capture()[0m, [1mregexp_capture_into_json()[0m, [1mregexp_match()[0m,
|
|
|
|
|
[1mregexp_replace()[0m, [1mreplace()[0m, [1mreplicate()[0m, [1mreverse()[0m, [1mrightstr()[0m,
|
|
|
|
|
[1mrtrim()[0m, [1msparkline()[0m, [1mspooky_hash()[0m, [1mstartswith()[0m, [1mstrfilter()[0m,
|
|
|
|
|
[1msubstr()[0m, [1mtrim()[0m, [1municode()[0m, [1mupper()[0m
|
|
|
|
|
[4mExamples[0m
|
|
|
|
|
#1 To select the XML nodes on the path '/abc/def':
|
|
|
|
|
[37m[40m;[0m[1m[36m[40mSELECT[0m[37m[40m [0m[1m[37m[40m*[0m[37m[40m [0m[1m[36m[40mFROM[0m[37m[40m [0m[1m[37m[40mxpath[0m[37m[40m([0m[35m[40m'/abc/def'[0m[37m[40m, [0m[35m[40m'<[0m[35m[40mabc[0m[35m[40m><[0m[35m[40mdef[0m[35m[40m a="b">Hello</[0m[35m[40mdef[0m[35m[40m><[0m[35m[40mdef[0m[35m[40m>Bye</[0m[35m[40mdef[0m[35m[40m></[0m[35m[40mabc[0m[35m[40m>'[0m[37m[40m)[0m
|
|
|
|
|