|
NAMEstring-length - print string lengthsSYNOPSISstring length [(-q | --quiet)] [STRING...] DESCRIPTIONstring length reports the length of each string argument in characters. Exit status: 0 if at least one non-empty STRING was given, or 1 otherwise.EXAMPLES>_ string length 'hello, world' 12 >_ set str foo >_ string length -q $str; echo $status 0 # Equivalent to test -n "$str" COPYRIGHT2021, fish-shell developers
Visit the GSP FreeBSD Man Page Interface. |