From: wli@cincom.com
Subject: Need to format text records from a hugh file
Date: 1999/06/28 [thread overview]
Message-ID: <7l73lr$8fl$1@nnrp1.deja.com> (raw)
Hi,
I wonder if someone can help me on the following problem.
I have an export file with 4 fields in each record i.e.
AAAAAAA ; BBBBBBBBB ; C ; DDD
AAAA ; BBBBBB ; CCCCCC ; D
and I need to reformat the records by removing the ";" with the
following condition
1. A field starts from 1st col. to 7th col.
2. B field starts from 8th col. to 34th col.
3. C field starts from 35th col. to 55th col.
4. D field starts from 55th col. to 60th col.
If the text is less that the length of field, space (from space bar)
will be appended to the end of that field.
Is there a simple way that I can do it with "vi" or is there any tools
or script that I can do that?
The file has 200000 records and I just can't afford to change them one
by one and I need it quite urgent.
Thanks in advanced for any help.
William
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
next reply other threads:[~1999-06-28 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-28 4:00 wli [this message]
1999-06-28 4:00 ` Need to format text records from a hugh file JGM_van_Ras
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox