summaryrefslogtreecommitdiffstats
path: root/pkgs/simple/field.nix
blob: 71362398d0dd1f8cc7ee16d8dd64215d5d1f8e2e (plain)
1
2
3
4
5
6
{ gawk, writeDashBin }:

writeDashBin "field" ''
  set -u
  exec ${gawk}/bin/awk -v n="$1" '{print$n}'
''