Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/akrylysov/hexunescape

A small tool to unescape hex escaped text files (e.g. Nginx logs)
https://github.com/akrylysov/hexunescape

hex nginx

Last synced: 2 months ago
JSON representation

A small tool to unescape hex escaped text files (e.g. Nginx logs)

Awesome Lists containing this project

README

        

hexunescape
===========

hexunescape is a small tool to unescape hex escaped text files (e.g. Nginx logs).

Installation
------------

```
go get -u github.com/akrylysov/hexunescape/cmd/hexunescape
```

Usage
-----

```
usage: hexunescape [path]

path is optional, defaults to stdin.
```

Example
-------

Stdin as an input:

```
echo "\x22abc\x22" | hexunescape
"abc"
```

File as an input:

```
echo "{\x22foo\x22:\x22bar\x22}" > test
hexunescape test
{"foo":"bar"}
```