Gentoo Archives: gentoo-user

From: Philip Webb <purslow@×××××××××.ca>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] VERY OFF TOPIC - change sparse data to daily data
Date: Fri, 16 Nov 2007 02:05:08
Message-Id: 20071116015804.GD4755@sympatico.ca
In Reply to: [gentoo-user] VERY OFF TOPIC - change sparse data to daily data by Mark Knecht
1 071115 Mark Knecht wrote:
2 > I have a data file with data that changes infrequently.
3 > The file lists only the day the data changes.
4 > There are only 144 lines representing 23 years of data.
5 > There are three values for the data - 1, 0 & -1. The file looks like this:
6 > 09/27/74, 1
7 > 07/11/75, -1
8 > 08/01/75, 1
9 > 03/12/76, -1
10 > 04/02/76, 1
11 > 05/07/76, -1
12 > 06/04/76, 1
13 > I need to turn this data into a file with the same format
14 > but one that has data for every date, something like this:
15 > 09/28/74, 1
16 > 09/29/74, 1
17 > 09/30/74, 1
18
19 I would do it with Vim, mainly 's' & 'q'. It would probably help slightly
20 if you used international date format: '1974-09-27' etc. HTH
21
22 --
23 ========================,,============================================
24 SUPPORT ___________//___, Philip Webb : purslow@××××××××××××××.ca
25 ELECTRIC /] [] [] [] [] []| Centre for Urban & Community Studies
26 TRANSIT `-O----------O---' University of Toronto
27 --
28 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] VERY OFF TOPIC - change sparse data to daily data Mark Knecht <markknecht@×××××.com>