Files

hawk – Haskell text processor for the command-line

Hawk is a command-line text processor that brings Haskell expressions to shell pipelines.

It’s aimed at jobs that sit between quick one-liners and full Haskell programs, making it easier to filter, reshape, and transform line-oriented or tabular text from the terminal. When expressions start to grow, reusable logic can be moved into a user-configurable prelude file instead of being crammed into a single command.

This is free and open source software.

Key Features

  • Transforms text from the command-line using Haskell expressions.
  • Designed for use in UNIX pipelines and shell workflows.
  • Supports both whole-input transformations and per-line mappings.
  • Can work with whitespace-delimited text, custom field delimiters, custom record delimiters, or raw ByteString input.
  • Lets users extend commands with helper functions, imports, and language pragmas through a configurable prelude file.
  • Well suited to filtering and reorganising collections of strings arranged as lines or tables.

Website: github.com/gelisam/hawk
Support:
Developer: Mario Pastorelli, Samuel Gélineau
License: Apache License 2.0

Hawk is written in Haskell. Learn Haskell with our recommended free books and free tutorials.


Related Software

Alternatives to awk
gawkImplementation of the awk programming language
GoAWKPOSIX-compliant awk interpreter written in Go
MillerSmall and powerful CLI tool to do all your data processing
frawkSmall programming language for writing short programs processing textual data
chooseHuman-friendly and fast alternative to cut and (sometimes) awk
gemaGeneral purpose text processing utility based on the concept of pattern matching
mawkInterpreter for the awk programming language
ruplacerFind and replace text in source files

Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments