Skip to content

Instantly share code, notes, and snippets.

@zetxek
Created March 21, 2016 16:15
Show Gist options
  • Save zetxek/6e04147a810106d56f56 to your computer and use it in GitHub Desktop.
Save zetxek/6e04147a810106d56f56 to your computer and use it in GitHub Desktop.
Count the number of files containing a string in the filename in a directory and folders, then divide that number by another, and print it to the console
echo `ls * | grep https | wc -l`/2 | bc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment