refawide.blogg.se

Github baseelements
Github baseelements












slurpfile foo bar, then $foo is available in the program and has an array whose elements correspond to the texts in the file named bar. argjson foo 123, then $foo is available in the program and has the value 123. Note that value will be treated as a string, so -arg foo 123 will bind $foo to "123". arg foo bar, then $foo is available in the program and has the value "bar". ssage] | sort" "") // Or the shorter method in this case.īE_JSON_jq ( $$JSON " | select(.ssage | contains(\"BE_RegularExpression\") )]" "") // Extract via a contains filter. message" "") // Use sort_by() to sort things. ] | all" "") // Determine if an array of booleans has all true values.

github baseelements

] | any" "") // Determine if an array of booleans has any true values. sha" "-r") // Need just raw data? Use -raw-output / -r. sha]" "") // Use select to find specific things. author)" "") // You can also use the map() builtin function. author]" "") // Make your new results into an array. author" "") // Or combine two objects together. " "") // Get multiple elements with comma. | length" "") // Pipe each element to length command. ěE_JSON_jq ( $$JSON "." "") // Pulling further down into other objects.

github baseelements

ěE_JSON_jq ( $$JSON ".sha" "") // Pulling just one key from each element.

github baseelements

ěE_JSON_jq ( $$JSON "." "") // Just one specific element. ěE_JSON_jq ( $$JSON "." "") // Now get the elements of the array.














Github baseelements