blob: 5eb19d5ae67da0630d98dc42caef29fa79b593ed [file] [log] [blame]
#!/bin/bash
# Copyright 2021 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Creates a CSV file with all the unique values from one or more columns from
# /tmp/alljobs.csv.
# The only arg is a comma separated list of column names that will also be used
# as the output filename.
mlr --csv uniq -f $1 /tmp/alljobs.csv | mlr --csv sort -f $1 > /tmp/$1.csv