Linux 是否有一个工具可以从任何类型的文件中提取所有字符串?

Linux 是否有一个工具可以从任何类型的文件中提取所有字符串?,linux,string,passwords,extract,Linux,String,Passwords,Extract,我正在寻找一种替代方法,可以从它遇到的任何类型的文件中提取字符串 谢谢=字符串 /*因为我需要15个字符*/ 编辑自80年代末以来,每个*nix中都有一个名为strings的程序,它就是这样做的。您可以登录到任何*nix,然后键入man strings以获取更多信息。或者您可以键入字符串-h,沿 Usage: strings [option(s)] [file(s)] Display printable strings in [file(s)] (stdin by default) The op

我正在寻找一种替代方法,可以从它遇到的任何类型的文件中提取字符串

谢谢=

字符串

/*因为我需要15个字符*/

编辑自80年代末以来,每个*nix中都有一个名为strings的程序,它就是这样做的。您可以登录到任何*nix,然后键入man strings以获取更多信息。或者您可以键入字符串-h,沿

Usage: strings [option(s)] [file(s)]
Display printable strings in [file(s)] (stdin by default)
The options are:
-a - --all                Scan the entire file, not just the data section
-f --print-file-name      Print the name of the file before each string
-n --bytes=[number]       Locate & print any NUL-terminated sequence of at
-<number>                 least [number] characters (default 4).
-t --radix={o,d,x}        Print the location of the string in base 8, 10 or 16
-o                        An alias for --radix=o
-T --target=<BFDNAME>     Specify the binary file format
-e --encoding={s,S,b,l,B,L} Select character size and endianness:
                        s = 7-bit, S = 8-bit, {b,l} = 16-bit, {B,L} = 32-bit
@<file>                   Read options from <file>
-h --help                 Display this information
-v --version              Print the program's version number

然后,您可以将哪些选项传递给字符串,以改变其行为。

为什么需要它,为什么wyd不适合您?如果您提供此信息,人们可以更好地帮助您。wyd将删除某些字符,如:我希望保留这些字符。我试过编辑代码,但是没有成功。哦,哇,nvm。我没有意识到linux中已经内置了字符串:dt这就是为什么需要15个字符的原因。@zvonimir@MKv4:应该这样做-好的,如果你需要更多关于如何使用字符串的信息,请给我留言。