Skip to content

Instantly share code, notes, and snippets.

@kaicode
Created July 28, 2020 15:26
Show Gist options
  • Save kaicode/0c1e3f2b6633d86e103cf37421d5a5ea to your computer and use it in GitHub Desktop.
Save kaicode/0c1e3f2b6633d86e103cf37421d5a5ea to your computer and use it in GitHub Desktop.
Remove duplicate RF2 states with known effective time. (gsed is Gnome SED installed on MacOS)
file=der2_cRefset_LanguageDelta-en_INT_20200731.txt
effectiveTime=20200309
for id in `cut -f1 $file | sort | uniq -d`; do echo ${id}; gsed -i "/$id\t${effectiveTime}\t.*/d" $file; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment