Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

« Newer Snippets
Older Snippets »
1 total  XML / RSS feed 

Recursively add file extensions in OSX using Magic and your own filetypes

ExtensionAdder v.1

ExtensionAdder is an OSX ruby script that recursively traverses a folder, adding extensions to approprate files. The script uses the Magic file, but you can extend the behavior by adding your own shell scripts (see the "includes" folder) to grep into files that Magic only classifies as "data".

At this time you have to explicitly state which file types you want to add extensions to.

Download it here


Sandon Jurowski
[email protected]
« Newer Snippets
Older Snippets »
1 total  XML / RSS feed