LLVM-STRINGS(1)
π NAME π
llvm-strings β print strings. Bestie, this is the LLVM-STRINGS(1) manual page, and it's giving "find the printable bits in your files" energy. π
πΈ SYNOPSIS πΈ
llvm-strings [options] [input...]
β¨ DESCRIPTION β¨
okay so llvm-strings is a tool intended as a drop-in replacement for GNU's strings. It looks for printable strings in files and writes them to the standard output stream. π
A printable string is any sequence of four (by default) or more printable ASCII characters. The end of the file, or any other byte, terminates the current sequence. No cap.
llvm-strings looks for strings in each input file specified. Unlike GNU strings it looks in the entire input file, regardless of file format, rather than restricting the search to certain sections of object files. It's literally reading the whole vibe of the file. π
If - is specified as an input, or no input is specified, the program reads from the standard input stream. Yep, stdin main character energy. π¦
π EXAMPLE π
$ cat input.txt
bars
foo
wibble blob
$ llvm-strings input.txt
bars
wibble blob
Notice how foo doesn't make the cut here β the default minimum is 4, bestie. π
π OPTIONS π
--all,-aβ Silently ignored. Present for GNUstringscompatibility. It's giving "I'm here for the vibes and the compat," not actual functionality. π--bytes=<length>,-nβ Set the minimum number of printable ASCII characters required for a sequence of bytes to be considered a string. The default value is4. Literally the length gatekeeper. π--help,-hβ Display a summary of command line options. Your little cheat sheet, bestie. π--print-file-name,-fβ Display the name of the containing file before each string.
Example:
$ llvm-strings --print-file-name test.o test.elf
test.o: _Z5hellov
test.o: some_bss
test.o: test.cpp
test.o: main
test.elf: test.cpp
test.elf: test2.cpp
test.elf: _Z5hellov
test.elf: main
test.elf: some_bss
--radix=<radix>,-tβ Display the offset within the file of each string, before the string and using the specified radix. Valid <radix> values areo,dandxfor octal, decimal and hexadecimal respectively.
Example:
$ llvm-strings --radix=o test.o
1054 _Z5hellov
1066 .rela.text
1101 .comment
1112 some_bss
1123 .bss
1130 test.cpp
1141 main
$ llvm-strings --radix=d test.o
556 _Z5hellov
566 .rela.text
577 .comment
586 some_bss
595 .bss
600 test.cpp
609 main
$ llvm-strings -t x test.o
22c _Z5hellov
236 .rela.text
241 .comment
24a some_bss
253 .bss
258 test.cpp
261 main
--versionβ Display the version of thellvm-stringsexecutable. Slay, version check. β@<FILE>β Read command-line options from response file <FILE>. Response file era, iykyk. π§
π EXIT STATUS π
llvm-strings exits with a non-zero exit code if there is an error. Otherwise, it exits with code 0. So 0 is the good vibe, non-zero means something went sideways. No cap.
π BUGS π
To report bugs, please visit https://github.com/llvm/llvm-project/labels/tools:llvm-strings/. The LLVM team wants the receipts, bestie. π«Ά
π AUTHOR π
Maintained by the LLVM Team (https://llvm.org/). Periodt.
π COPYRIGHT π
2003-2023, LLVM Project.
xoxo π β this was LLVM-STRINGS(1) from LLVM 15, dated 2023-01-14. Now go find those printable strings, bestie! π¦β¨
π¦ where this page comes from
- opensuse-leap 16.0: llvm15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms