Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 382 Bytes

File metadata and controls

24 lines (17 loc) · 382 Bytes

Function

trim — strip leading and trailing whitespace

Synopsis

trim(s: string) -> string

Description

The trim function converts stips all leading and trailing whitespace from string argument s and returns the result.

Examples

echo '" = Zed = "' | zq -z 'yield trim(this)' -

=>

"= Zed ="