u8strings - print the strings of printable UTF-8 characters in files
u8strings [-a] [-t format] [-n n] [file...]
For each file, u8strings prints the printable character sequences that are (by default) at least 4 characters long and are followed by an unprintable character.
If no file is specified, the u8strings scans the standard input.
u8strings considers all C0 control characters except tab, and all C1 control characters as non-printable. All other characters are considered printable.
- -a
-
This option has no effect. It is provided only for compatibility with POSIX.
- -t d
-
Print the string offset in decimal.
- -t o
-
Print the string offset in octal.
- -t x
-
Print the string offset in hexadecimal.
- -n n
-
Print strings that are at least n characters long. The default is 4.