DEV Community

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

Posted on • Edited on

1 2

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)

👋 Kindness is contagious

Dive into this thoughtful article, cherished within the supportive DEV Community. Coders of every background are encouraged to share and grow our collective expertise.

A genuine "thank you" can brighten someone’s day—drop your appreciation in the comments below!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found value here? A quick thank you to the author makes a big difference.

Okay