Skip to content

Commit ea61eac

Browse files
committed
update README
1 parent b1e2adc commit ea61eac

File tree

1 file changed

+28
-12
lines changed

1 file changed

+28
-12
lines changed

README.md

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,28 +33,44 @@ README.md
3333
```
3434
$ grep_bin -h
3535
36-
grep_bin 1.1.1
36+
grep_bin 1.2.0
3737
LaBatata101 <labatata101@linuxmail.org>
3838
Searches recursively a directory or multiple files for a sequence of bytes or ASCII string.
3939
4040
USAGE:
41-
grep_bin [OPTIONS] <FILE>... <PATTERN>
41+
grep_bin [FLAGS] [OPTIONS] <FILE>... <PATTERN>
4242
4343
FLAGS:
44-
-h, --help Prints help information
45-
-V, --version Prints version information
44+
-h, --help
45+
Prints help information
46+
47+
-p, --print-only
48+
Prints only the file name that contais the match.
49+
50+
-V, --version
51+
Prints version information
52+
4653
4754
OPTIONS:
48-
-c <context_bytes_size> Defines the number of bytes that will be printed in each line. [default: 16]
49-
-f <filetype>... Filter the search by the file extensions.
50-
Examples of input: jpg, mp3, exe
55+
-c <context_bytes_size>
56+
Defines the number of bytes that will be printed in each line. [default: 16]
57+
58+
-f <filetype>...
59+
Filter the search by the file extensions.
60+
Examples of input: jpg, mp3, exe
61+
-s, --skip-bytes <skip_bytes>
62+
Skip n bytes before searching. [default: 0]
63+
5164
5265
ARGS:
53-
<FILE>... The file path
54-
<PATTERN> Can be a ascii string or a byte sequence.
55-
Ascii strings should be passed inside quotes like so '"This is a string"'
56-
Escaping quotes '"This is a \"quote\""'
57-
All of these byte sequence are valid: f9b4ca, F9B4CA and f9B4Ca
66+
<FILE>...
67+
The file path
68+
69+
<PATTERN>
70+
Can be a ascii string or a byte sequence.
71+
Ascii strings should be passed inside quotes like so '"This is a string"'
72+
Escaping quotes '"This is a \"quote\""'
73+
All of these byte sequence are valid: f9b4ca, F9B4CA and f9B4Ca
5874
```
5975

6076
# Building Manually

0 commit comments

Comments
 (0)