Bash script for dealing with Mercurial empty directory issue

I ran across this neat little command for adding files in empty directories (deals with mercurial directory issues).

find . -empty -type d | xargs --replace=EMPTYDIR touch "EMPTYDIR/.empty"

On a Mac is is:

find . -empty -type d | xargs -I EMPTYDIR touch "EMPTYDIR/.empty"

link: Blog » Blog Archive » Bash script for creating files in empty folders – Mercurial workaround


Related Posts with Thumbnails
Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • StumbleUpon
  • Reddit
  • DZone
  • Facebook
  • Furl
  • Google Bookmarks
  • YahooBuzz
  • YahooMyWeb

About this entry