Find Empty Files and Directories from Command Line
If you are anything like me, you like to keep your projects as tight as possible. By "tight" I mean no lingering, useless files or directories, because bloat is an incredible annoyance and distraction. And we don't want distractions, do we?
There's a really easy way to find empty files and directories from the command line:
find /path/to/source/directory -empty
The result will be a list of empty files or directories which you can gloriously remove from your project and relax knowing you're running an incredibly tight ship.
When you say or read "HTML5", you half expect exotic dancers and unicorns to walk into the room to the tune of "I'm Sexy and I Know It." Can you blame us though? We watched the fundamental APIs stagnate for so long that a basic feature...
I work with an awesome cast of developers at Mozilla, and one of them in Daniel Buchner. Daniel's shared with me an awesome strategy for detecting when nodes have been injected into a parent node without using the deprecated DOM Events API.
One of the famous MooTools plugins is Harald Kirschner's AutoCompleter plugin. AutoCompleter takes a term input by the user and searches for matches -- an obviously help to the user. Here's how to make the most of Harald's great plugin.
The XHTML
All we...
Whenever you have a long page worth of content, you generally want to add a "top" anchor link at the bottom of the page so that your user doesn't have to scroll forever to get to the top. The only problem with this method is...
Is this the Mac version of the command? The windows version seems to be in a different order. Plus, I can’t seem to find a setting for the empty folders on Windows. If know, could you share? Thanks.
This command results in
f:\>find /path/to/source/directory -empty
FIND: Invalid switch’ using the command line. Does anyone have a better way to find empty folders using CMD line or Powershell?