From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: henrik.jonsson@se.transport.bombardier.com (=?ISO-8859-1?Q?Henrik_J=F6nsson?=) Newsgroups: gmane.emacs.help Subject: Parsing records in lisp? Date: 13 May 2003 02:09:06 -0700 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87e77d96.0305130109.1e735626@posting.google.com> NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1052817079 24976 80.91.224.249 (13 May 2003 09:11:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 13 May 2003 09:11:19 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Tue May 13 11:11:16 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19FVoa-0006UX-00 for ; Tue, 13 May 2003 11:11:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19FVnp-0001WD-05 for gnu-help-gnu-emacs@m.gmane.org; Tue, 13 May 2003 05:10:29 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 44 Original-NNTP-Posting-Host: 195.58.97.100 Original-X-Trace: posting.google.com 1052816947 1537 127.0.0.1 (13 May 2003 09:09:07 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 13 May 2003 09:09:07 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:113164 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9660 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9660 Hi! I have a file to record what I have I worked on every day. I use this list when I do my time reporting each week. The file looks like this: Week: 19 #Date Hours Project Comment 2003-05-08 2 FVCI Meeting with Prover about the quotation 2003-05-08 2 FVCI Reviewing Test Spec and Req Spec 2003-05-09 2 SCM Misc Week: 20 2003-05-12 2 FVCI Misc 2003-05-13 6 SCM Support Phoenix 2003-05-13 2 FVCI Test Spec SST Currently I have a small perl script that reads this file and generates a more suitable report that I can use when entering the hours into our time reporting system. The output is like this: ############################### Week: 19 FVCI: 4 SCM: 6 Totals: 10 ############################### Week: 20 FVCI: 4 SCM: 1 Totals: 5 However, I would like to create this report in lisp. I have tried some, but lisp is not yet my favourite language. Can anyone help me with this? Give me some snippets to be able to continue. Thanks! Regards Henrik