A Rust clone of a Perl word-splitting program.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
757 B

  1. bpb-words
  2. =========
  3. A command-line utility to split input into a list of words, one per line.
  4. I'm writing this as a learning exercise, based on
  5. [bpb-kit/home/bin/words][words].
  6. **Work in progress, barely functional at present.**
  7. current state
  8. -------------
  9. ```sh
  10. # Operate on standard input:
  11. echo 'one two three' | bpb-words -
  12. # ...or just:
  13. echo "one two three" | bpb-words
  14. # Operate on some file:
  15. bpb-words ./foo
  16. ```
  17. desired features
  18. ----------------
  19. ```sh
  20. # list all unique words, ignoring case, in foo:
  21. bpb-words -ui ./foo
  22. # find ten most used words longer than 6 letters in foo:
  23. bpb-words -uci -s6 foo | sort -nr | head -10
  24. ```
  25. installing
  26. ----------
  27. ???
  28. [words]: https://code.p1k3.com/gitea/brennen/bpb-kit/src/branch/master/home/bin/words