digital adj. Having digits.     peer n. A comrade; a companion; a fellow; an associate. a.k.a. GEEKED    
   
Recent Articles
Mount JFFS2 Image
Saturday, October 25, 2008
Ottawa Linux Symposium 2008
Sunday, July 27, 2008
Here are some pictures from the 2008 Linux Symposium.
Linux Symposium 2008
Sunday, July 20, 2008
I'll be attending the Linux Symposium this year.
Clay Shirky: Institutions vs. collaboration
Monday, July 14, 2008
This is a rather interesting talk that takes some very foundational ideas from open source software development, P2P networks, and social networking and implies that these paradigms can apply to a lot more.
Fremont Street
Sunday, July 29, 2007
Remote Control Dragonfly
Sunday, July 29, 2007
Videos
Sunday, July 29, 2007
Assortment of videos.
Honda CBR F4 Carburetor Cleaning
Monday, July 23, 2007
Details on how to clean F4 carburetors.

Be nice to nerds. Chances are you'll end up working for one.
- Bill Gates

Projects-Misc Scripts-Insert Code...

Insert Code File Header

Sunday, March 6, 2005 by digitalpeer

A simple BASH script that dynamically inserts headers such at copyright information and disclaimers in source files.

1) Inserts a header file into all files with the given extension.
2) Does so recursively.
3) Won't insert it if the header already exists.
4) Variables in the format %VARIABLE% are replaced in the header.
4-1) Replaces predefined variables in the header:
FILENAME (just file name)
FILEPATH (full file path)
TIME (06:11:43 PM)
DATE (2005-03-04)
4-2) Replaces user defined variables in the header. This includes
anything defined on the command line as an option in the
format --VARIABLE=VALUE and evaluates %VARIABLE% to VALUE in the
header.
Attached Files
header.sh, uploaded Sunday, March 6, 2005
Version 1.0


Submit Comment to This Article - Be the first!
Please post a comment if you have something to add, find something wrong, or would like more information on the topic at hand. Do not use the comment form to contact the author about unrelated concerns!

Name: Email (optional):
Enter verification number here: