2010-07-18 38 views
2

我在寻找wyd 0.2的替代方案,可以从任何类型的文件中提取字符串。有没有一种工具可以从任何类型的文件中提取所有字符串?

感谢=)

+2

为什么你需要它,为什么'wyd'不适合你?如果你提供这些信息,人们可以更好地帮助你。 – dwich 2010-07-18 20:34:33

+0

wyd删除了某些我喜欢保留的“:”字符。我试过编辑代码,但没有这样做的运气。 – MKv4 2010-07-18 21:30:12

+0

哦哇。我没有意识到字符串已经内置到linux中:D – MKv4 2010-07-18 21:46:25

回答

3

strings

/*填充,因为我需要15个字符*/

编辑有一个在每一个* nix中称为strings在那里程序,因为后期“ 80年代就是这样。您可以登录到任何* nix,然后输入man strings以获取更多信息。或者你可以键入strings -h表示沿着它们那么你可以传递到strings选项

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 

线的东西,改变它的行为。

+0

你能提供一个链接吗? – MKv4 2010-07-18 21:32:16

+0

为什么需要15个字符是有原因的。 – zvone 2010-07-18 21:38:00

+0

@zvonimir @ MKv4:应该这样做;-) – mvds 2010-07-18 21:42:33

相关问题