init and upload repository
[cmdllinux.git] / mixed_n_other / _grep_search_binary.sh
blob897b80f6247951444f82709e6939acad3cba227e
1 #A=$'\x0A'; grep --byte-offset --only-matching -U "$A" kernel.mkfs
2 A=$'\x0A'; grep -b -o -UP "\x0a" kernel.mkfs
3 A=$'\x0A'; grep -b -UP "\x0a" kernel.mkfs
5 #line byte offset
6 A=$'a'; grep -b "a" kernel.mkfs
7 #pattern byte offset
8 A=$'a'; grep -bo "a" kernel.mkfs
10 #A=$'\x44\x55'; grep --byte-offset --only-matching "$A" kernel.mkfs | head -n -1
11 #A=$'\x44\x55'; grep --byte-offset --only-matching "$A" kernel.mkfs | head -n -1 | cut -d ':' -f 1
12 #grep -obUaP "\x00\x00" kernel.mkfs
13 #grep -obUaP "\x00\x1e" kernel.mkfs
14 #grep -obUaP "\x07P8" kernel.mkfs
15 #binwalk -R "\x44\x55" kernel.mkfs
16 #binwalk -R "\x0a\x00" kernel.mkfs
17 #grep -c $'\x0a' kernel.mkfs
19 #grep -bo $'\x0a' kernel.mkfs