2010-07-18 2 views
2

wyd 0.2에 대한 대안을 찾고 있는데,이 파일은 모든 종류의 파일에서 문자열을 추출 할 수 있습니다.에는 모든 유형의 파일에서 모든 문자열을 추출 할 수있는 도구가 있습니까?

감사 =)

+2

왜 필요하고 왜 'wyd'가 적합하지 않습니까? 이 정보를 제공하면 사람들이 더 잘 도와 줄 수 있습니다. – dwich

+0

wyd는 ":"와 같은 특정 문자를 지우고 있습니다. 코드 편집을 시도했지만 그렇게하지 않아도됩니다. – MKv4

+0

오우 와우. 나는 문자열이 이미 리눅스에 내장되어 있다는 것을 깨닫지 못했습니다 : D – MKv4

답변

3

strings

/* 패딩 내가 15 개 문자 */

편집을 필요로하기 때문에 거기에 모든 * nix에서 스크립트에 strings라는 프로그램이있다 후반부터 ' 80 년대. 밖에있는 * nix에 로그인하고 man strings을 입력하면 자세한 정보를 얻을 수 있습니다. 또는 당신은 행동의 변경, 당신은 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 

의 라인을 따라 뭔가 게재 strings -h 입력 할 수 있습니다.

+0

당신은 링크를 제공 할 수 있습니까? – MKv4

+0

15자를 사용해야하는 이유가 있습니다. – zvone

+0

@zvonimir @ MKv4 : 이걸로해야한다 ;-) – mvds

관련 문제