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

https://github.com/ciaranomara/blind.jl

File blinder
https://github.com/ciaranomara/blind.jl

julia science

Last synced: about 1 year ago
JSON representation

File blinder

Awesome Lists containing this project

README

          

# Blind.jl

[![Run tests](https://github.com/CiaranOMara/Blind.jl/workflows/Run%20tests/badge.svg)](https://github.com/CiaranOMara/Blind.jl/actions?query=workflow%3A%22Run+tests%22)

> This project follows the [semver](http://semver.org) pro forma and uses the [git-flow branching model](https://nvie.com/posts/a-successful-git-branching-model/ "original
blog post").

## Overview
This script blinds files by copying and renaming them with a random set of characters. The script also saves a record in `key.csv` for the un-blinding of files.

## Installation
(v1.1) pkg> add https://github.com/CiaranOMara/Blind.jl

## Usage

If the `blind.sh` script is executable and locatable by your `PATH` variable, you can call it by executing `blind.sh` at the prompt.
Otherwise, run the script at the prompt with `sh blind.sh` or `julia blind.sh`.

```
usage: blind.sh [-s SETS] [-n NUMERIC] [-h] input [output] [key]

positional arguments:
input Input directory.
output Output directory.
key Key file (.csv).

optional arguments:
-s, --sets SETS Number of numeric sets. (type: Int64, default:
3)
-n, --numeric NUMERIC
Number of numeric characters. (type: Int64,
default: 4)
-h, --help show this help message and exit
```

## Optional (Unix like systems)

To make the script executable, grant execution privileges to the bash script.
```console
chmod +x blind.sh
```

To make the script locatable, link the script under a directory like `~/Documents/Scripts`.
```console
ln -s /blind.sh ~/Documents/Scripts/blind
```

Then include the directory in your `PATH` variable.
```console
echo 'export PATH=$PATH:~/Documents/Scripts' >> ~/.profile
```

> ***Note:*** The example shows how to modify the `PATH` variable in a bash environment.