Skip to content

Instantly share code, notes, and snippets.

@void-main
Created September 18, 2012 08:31
Show Gist options
  • Save void-main/3742036 to your computer and use it in GitHub Desktop.
Save void-main/3742036 to your computer and use it in GitHub Desktop.
Rename placeholder file for git to .gitkeep
# find . -name "temp" | awk '{print "mv "$1" "$1}' | sed s/temp/.gitkeep/4 | sh
#
find . -name "temp" -exec bash -c 'mv $0 `dirname $0`/.gitkeep' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment