galvarelli/scripts/wordcount.sh
2021-10-31 10:05:40 -05:00

3 lines
79 B
Bash

#! /usr/bin/env bash
wc -w {**,.}/*.txt | awk '{if ($2 == "total") print $1;}'