From 7aa6c668ee218e4e99eb6d75bc3839a03bfc84a1 Mon Sep 17 00:00:00 2001 From: Robert Bendun Date: Sat, 18 Mar 2023 17:00:48 +0100 Subject: [PATCH] Prune unwanted columns --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 8f60f54..1704d4e 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,6 @@ +languages.pruned.tsv: languages.original.tsv columns.user.tsv + bash -c "cut -f`grep '^y' columns.user.tsv | cut -f2 | paste -sd ','` $< >$@" + # Allow user to mark in which columns is interested columns.user.tsv: columns.pruned.tsv if [ -f $@ ]; then touch $@; else awk 'NR==1{ printf("Keep\t"); print } NR>1{printf("n\t"); print}' $< >$@; fi