1 ! Copyright (C) 2011 John Benediktsson
2 ! See http://factorcode.org/license.txt for BSD license
4 USING: command-line io io.encodings.utf8 io.files kernel
5 namespaces sets sequences ;
11 2dup = [ dup print ] unless nip
14 : uniq-file ( path/f -- )
16 utf8 [ uniq-lines ] with-file-reader
22 command-line get [ ?first ] [ ?second ] bi [
23 utf8 [ uniq-file ] with-file-writer