Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rabestro/exercism-solutions-awk

Solutions for the AWK track
https://github.com/rabestro/exercism-solutions-awk

awk awk-lang awk-language awk-script exercise-solutions exercism exercism-solutions

Last synced: 14 days ago
JSON representation

Solutions for the AWK track

Awesome Lists containing this project

README

        

# AWK Solutions for Exercism

## Description

This repository contains my solutions for Exercism exercises, written in Gnu AWK. Each solution is in its own folder, which includes the AWK script for the solution, a test file in Bats, and a README with the exercise description.

Please note that these solutions are tested on Gnu AWK and may not work on older versions of AWK. Some solutions may require additional variables to be set via the `-v` key. You can check the tests for each solution to see the correct command to use.

As a contributor to the AWK track on Exercism, I'm the author of two exercises:

- [Automated readability index](https://exercism.org/tracks/awk/exercises/automated-readability-index)
- [Mazy Mice](https://exercism.org/tracks/awk/exercises/mazy-mice)

## Installation

To run these solutions locally, you'll need to install Gnu AWK and Bats.

- For Gnu AWK, you can typically find it preinstalled on Unix-like operating systems. For Windows, you can install it through [Cygwin](https://www.cygwin.com/). Make sure you're using Gnu AWK, as these solutions may not work on older versions of AWK.
- For Bats, you can find installation instructions on the [Bats GitHub page](https://github.com/bats-core/bats-core#installation).

## Usage

To run a solution, navigate to its directory and run the AWK script with the `awk -f` command. For example:

```bash
awk -f solution.awk
```

## Contributing

Feedback and suggestions are welcome. If you have an idea for how to improve a solution, feel free to open an issue or a pull request.

## License

This project is licensed under the MIT License. See the LICENSE file for details.