-1

I have a CSV file that looks like this:

0
1
2
3

I'd like to use Miller to append an empty column x to every row so that the output file looks like this:

0,x
1,
2,
3,

How do I do that?

Mateusz Piotrowski
  • 4,623
  • 5
  • 36
  • 70

1 Answers1

2

The solution is to use the put verb:

$ seq 0 3 | mlr --csv put '$x=""'
0,x
1,
2,
3,
Mateusz Piotrowski
  • 4,623
  • 5
  • 36
  • 70