I find myself often writing shell scripts in Linux and losing track of them over time. What I would love is a program that stores a copy of the script, along with a descriptive note I write at the time. (Preferably NOT a change management program... I've already thought of using SVN... see commentary below.)

Does anyone know of a program that does this well?

Also, I often would like to share my none-proprietary scripts with the community and get feedback (or if they're good help other people out). I find StackOverflow and related sites tend to frown on non-question posts. What would be the proper forum/site for this kind of exchange? Suggestions?

Commentary on using svn for this:
I know I could create some sort of version controlled repository, but I really generally only have a couple of revisions, so robust change management isn't very important to me. I'd much rather have robust SEARCH that let's me find scripts that might fulfill the idea I'm working on or be similar.

Of course if you really, really think svn is my best solution, feel free to answer with an explanation why, and what modifications you would suggest (svn clients, etc.) to meet my needs.

2 Answers 2


You already mentioned svn. Even if you're not using the change management features much, source control is absolutely the way to go here. If you don't like svn, try setting up git or mercurial, both of which will allow you to keep your repository locally, without the need to connect to a server. You should also be able to search the commit messages.


Using descriptive filenames and adding descriptive comments within scripts has generally proven helpful in my own quest to similarly keep mine organized.

  • Always a good suggestion... I just find that my scripts tend to get lost in a mess of files, as I often make them in an impromptu spirit in folders.... Apr 14, 2012 at 4:47
  • 1
    grep -R is your friend.
    – LawrenceC
    Apr 14, 2012 at 13:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .