annak
clone your own copy | download snapshot

Snapshots | iceberg

Inside this repository

lexique.sh
text/x-sh

Download raw (169 bytes)

#! /usr/bin/env bash

# Outputs a list of all words in a text.
#
# USAGE
#
# ./lexique.sh /path/to/file.txt

cat $1 | tr -d "[:punct:]"  | tr " " "\n" | sort  | uniq -i