Skip to content

Instantly share code, notes, and snippets.

@Muzietto
Last active June 25, 2019 06:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Muzietto/46c9acc670e9953a1914b8231ae9a6f0 to your computer and use it in GitHub Desktop.
Save Muzietto/46c9acc670e9953a1914b8231ae9a6f0 to your computer and use it in GitHub Desktop.
Sending git commands about history to a file
#! /bin/bash
for file in `find . -name "*.scss"`; do git log --stat --oneline --pretty=format:"%cd" $file >> pippo3.txt; echo '------' >> pippo3.txt; done
for file in `find . -type f -name "*.js" ! -name "*.stories.js"`; do git log --stat --oneline --pretty=format:"%cd" $file >> pippo4.txt; echo '------' >> pippo4.txt; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment