Skip to content

Commit 51441fe

Browse files
committed
doc: update examples
1 parent 1ff1e3d commit 51441fe

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

doc/source/stringsext--manpage.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -334,44 +334,44 @@ List available encodings and predefined filter names:
334334

335335
Search for UTF-8 and UTF-16 Big-Endian encoded strings:
336336

337-
stringsext -t x -e utf-8 -e utf-16be someimage.raw
337+
stringsext -t x -e utf-8 -e utf-16be -- someimage.raw
338338

339339
The same, but read from "`stdin`":
340340

341-
cat someimage.raw | stringsext -t x -e utf-8 -e utf-16be -
341+
cat someimage.raw | stringsext -t x -e utf-8 -e utf-16be -- -
342342

343343
Scan a non-file device:
344344

345-
stringsext -t x -e utf-8 -e utf-16be /dev/sda1
345+
stringsext -t x -e utf-8 -e utf-16be -- /dev/sda1
346346

347347
Reduce the number of false positives, when scanning for UTF-16LE or UTF-16BE
348348
encoded strings. In the following example we search for Cyrillic only:
349349

350-
stringsext -t x -e UTF-16le,,None,Cyrillic someimage.raw
350+
stringsext -t x -e UTF-16le,,None,Cyrillic -- someimage.raw
351351

352352
Search for UTF-16LE encoded Arabic and the digits 0 to 9:
353353

354-
stringsext -t x -e UTF-16le,,0x3f000000000000,Arabic someimage.raw
354+
stringsext -t x -e UTF-16le,,0x3f000000000000,Arabic -- someimage.raw
355355

356356
Search for UTF-8 encoded Syriac and all ASCII, control-codes excluded:
357357

358-
stringsext -t x -e UTF-8,,All-Ctrl,0x10000000 someimage.raw
358+
stringsext -t x -e UTF-8,,All-Ctrl,0x10000000 -- someimage.raw
359359

360360
Combine Little-Endian and Big-Endian scanning:
361361

362-
stringsext -t x -e UTF-16be -e UTF-16le someimage.raw
362+
stringsext -t x -e UTF-16be -e UTF-16le -- someimage.raw
363363

364364
Show the filter default values used in the above example:
365365

366-
stringsext -d -t x -e UTF-16be -e UTF-16le someimage.raw
366+
stringsext -d -t x -e UTF-16be -e UTF-16le -- someimage.raw
367367

368368
Search for path-names and URLs in some disk-partition:
369369

370-
sudo stringsext -tx -e utf-8 -n 15 -g 47 /dev/disk/by-uuid/91C8-2721
370+
sudo stringsext -tx -e utf-8 -n 15 -g 47 -- /dev/disk/by-uuid/91C8-2721
371371

372372
Equivalent:
373373

374-
sudo stringsext -tx -e utf-8,15,,,47 /dev/disk/by-uuid/91C8-2721
374+
sudo stringsext -tx -e utf-8,15,,,47 -- /dev/disk/by-uuid/91C8-2721
375375

376376

377377
# OPERATING PRINCIPLE

0 commit comments

Comments
 (0)