DEV Community

Cover image for Bash script to count words and characters of multiple documents *.[txt|doc]
alfiosalanitri
alfiosalanitri

Posted on • Edited on

Bash script to count words and characters of multiple documents *.[txt|doc]

Demo linux doc words counter

a simple tool for people that need to count characters and words of multiple documents from command line interface.

Supports: *.txt and *.doc filetype

Prerequisites

  • a linux distro
  • sudo privileges
  • unzip package
  • catdoc package

Installation

sudo mv linux_doc_words_counter /usr/local/bin
sudo chmod +x /usr/local/bin/linux_doc_words_counter
Enter fullscreen mode Exit fullscreen mode

Usage

linux_doc_words_counter /path/to/archive.zip
Enter fullscreen mode Exit fullscreen mode

Top comments (0)