Skip to content

Instantly share code, notes, and snippets.

@greghor
Created January 23, 2020 11:22
copy .gitignore in all folders that contains a .gitkeep
#adapted from https://unix.stackexchange.com/a/180616
find . -name ".gitkeep" -exec sh -c '
for file do
dir=${file%/*}
cp data/raw/.gitignore "$dir"
done' sh {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment