intenthq / anon

A UNIX Command To Anonymise Data
MIT License
354 stars 14 forks source link

Add anonymisation action: Remove value/column #11

Open albertpastrana opened 6 years ago

albertpastrana commented 6 years ago

It would be great to be able to entirely remove a column from the input.

Config could be something like the following:

{
  "actions": [
    {
      "name": "identity"
    },
    {
      "name": "remove"
    },
    {
      "name": "hash"
    }
  ]
}

Then, for an input like this one:

a,b,c
d,e,f

The output would be:

a,84a516841ba77a5b4648de2cd0dfcb30ea46dbb4
d,4a0a19218e082a343a1b17e5333409af9d98f0f5