Re: MergeLog.awk



On Fri, 2002-01-18 at 10:04, Gonzalo Paniagua Javier wrote:
> * [ Maciej Stachowiak <mjs noisehavoc org>
> * Fri, 18 Jan 2002 09:52:08 +0100 ]
> > Date merging should be pretty easy with a bit of appropriate perl
> > hackery. I think it would be nicer to keep things date sorted.
> 
> 	Perl? No thanks.
> 
> 	Here goes a AWK script that does the job. I tested it with
> 	libgda and it works fine.
> 
> 	To merge all the logs under libgda, I exec'd:
> 
> 	gawk -f MergeLog.awk `find -name ChangeLog` > FullLog
> 
> 	It prepends the directory name of each ChangeLog to the file
> 	names after a "^\t\*( )+".
> 
> 	Use it at your own risk. Improve it if you want. Share it if you
> 	find it useful.
> 
> 	Hope you like it.
> 
I only find a little problem (from the output you sent me, since I can't
get that out from the awk code :-), which is it prepends:

./directory/filename:

to the filenames. Could you have it remove the ./ prefix?

cheers
-- 
Rodrigo Moya <rodrigo gnome-db org> - <rodrigo ximian com>
http://www.gnome-db.org/ - http://www.ximian.com/
_______________________________________________
gnome-hackers mailing list
gnome-hackers gnome org
http://mail.gnome.org/mailman/listinfo/gnome-hackers



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]