DEV Community

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

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

alfiosalanitri
I'm a web developer based in Catania (Sicily) that love coding and learning new program languages.
・1 min read

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/bin
sudo chmod +x /usr/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

Discussion (0)