Skip to content

Instantly share code, notes, and snippets.

@smcl
Created January 23, 2016 17:40
Show Gist options
  • Save smcl/6a701ba983e0bfec63e5 to your computer and use it in GitHub Desktop.
Save smcl/6a701ba983e0bfec63e5 to your computer and use it in GitHub Desktop.
#!/bin/bash
numberFiles=`ls ./srt/*.srt | wc -w | tr -d '[[:space:]]'`
seq -s ' ' $numberFiles
printf "\n"
find ./srt/* | while read s
do
grep -io harvard "${s}" | wc -w | tr -d '[[:space:]]'
printf " "
done
printf "\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment