fx

command module
v0.72.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2025 License: MIT Imports: 11 Imported by: 0

README

The Swiss Army Knife for examining text files. Combining the most useful functionalities from zcat, zless, grep, hexdump, head, tail, jq, wc and various cryptographic hashes into one performant standalone binary. As is this a forensic tool and not an editor, it is guaranteed, that no write actions will be made.

go install github.com/cuhsat/fx@latest

Examine the current dir

fx

Examine directly from stdin

fx -

Examine all .jsonl files in all sub dirs

fx ./**/*.jsonl

Print all lines with John Doe from all files

fx -p -e "John Doe"

Print the first 512 bytes to mbr in hex

fx -x -h -c 512 nist.dd > mbr

Usage

fx [-x] [-p] [-h|t] [-n|c #] [-e PATTERN] [-j] [-J] [-o FILE] [PATH ...]

The Swiss Army Knife for examining text files

positional arguments:
  PATH to open (default: current dir)

mode:
  -x start in Hex mode

print:
  -p print to console (no UI)

limits:
  -h limit head of file by ...
  -t limit tail of file by ...
  -n # number of lines
  -c # number of bytes

filters:
  -e PATTERN to filter

evidence:
  -o FILE for evidence bag (default: EVIDENCE)
  -j output in JSON format
  -J output in JSON lines format

options:
  --help    show help message
  --version show version info

Made with ❤ in Go

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL