Skip to content

Instantly share code, notes, and snippets.

@francois2metz
Created February 3, 2011 10:27
Show Gist options
  • Save francois2metz/809318 to your computer and use it in GitHub Desktop.
Save francois2metz/809318 to your computer and use it in GitHub Desktop.
Add header in all source file
find src/ -name *.erl -exec sh -c "mv '{}' /tmp/plop && cp source.txt '{}' && cat /tmp/plop >> '{}' && rm /tmp/plop" \;
%%
%% U.C.Engine - Unified Colloboration Engine
%% Copyright (C) 2011 af83
%%
%% This program is free software: you can redistribute it and/or modify
%% it under the terms of the GNU Affero General Public License as published by
%% the Free Software Foundation, either version 3 of the License, or
%% (at your option) any later version.
%%
%% This program is distributed in the hope that it will be useful,
%% but WITHOUT ANY WARRANTY; without even the implied warranty of
%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
%% GNU Affero General Public License for more details.
%%
%% You should have received a copy of the GNU Affero General Public License
%% along with this program. If not, see <http://www.gnu.org/licenses/>.
%%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment