pk
« Back to VersTracker
Description:
Field extractor command-line utility
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: cli text-processing data-extraction unix-tools utilities
Install: brew install pk
About:
Pk is a command-line utility for extracting fields from text streams, similar to the Unix cut command but with a more intuitive syntax. It allows users to specify fields by name from delimited data, making scripts more readable and maintainable. The tool is particularly useful for processing structured text like CSV or log files without complex awk or sed patterns.
Key Features:
  • Named field extraction using column headers
  • Simple, intuitive syntax compared to cut/awk
  • Handles various delimiters including commas, tabs, and spaces
  • Lightweight and fast for stream processing
Use Cases:
  • Extracting specific columns from CSV files in shell scripts
  • Parsing log files to isolate relevant fields for analysis
  • Quick data filtering in command pipelines
Alternatives:
  • cut – Standard Unix tool but requires numeric field positions and lacks named field support
  • awk – More powerful but has steeper learning curve and heavier syntax for simple field extraction
  • csvkit – Full CSV toolkit with more features but larger dependency footprint
Version History
Detected Version Rev Change Commit
Sep 13, 2025 11:13am 0 VERSION_BUMP f385e580
Sep 13, 2024 5:55am 0 VERSION_BUMP 62eb926e