Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Awk > Re: remove extr...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 8 Topic 2126 of 2345
Post > Topic >>

Re: remove extra numeric field

by wong_powah@[EMAIL PROTECTED] Jan 8, 2008 at 07:22 PM

On Jan 5, 11:01 am, Ed Morton <mor...@[EMAIL PROTECTED]
> wrote:
> On 1/5/2008 9:21 AM, wong_po...@[EMAIL PROTECTED]
 wrote:
>
>
>
> > How to remove the extra numeric field in a text file?
> > e.g. for the following text file, I want to remove $2,299.11 from the
> > first line, $2,292.86 from the second line, $2,170.08 from the fourth
> > line and $2,286.08 from the last line.
>
> > Oct. 01, 2007        CITY OF
> > VANCOUVER                                   $456.48     $2,299.11
> > Property taxes
> > Oct. 02, 2007        TD GEN INS
> > $66.25     $2,292.86   Car insurance
> > Oct. 09, 2007        BELAIR HABITAT. BELAIR INS/ASS.
> > $40.95     Home insurance
> > Oct. 09, 2007        ENBRIDGE ENBRIDGE
> > $45.91     $2,170.08   Home heating
> > Nov. 05, 2007     CANADIAN TIRE #
> > $22.74     Home general maintenance
> > Dec. 10, 2007     CANADIAN TIRE #
> > $44.21     Home general maintenance
> > Dec. 19, 2007     CANADIAN TIRE #
> > $71.48     $2,286.08   Home general maintenance
>
> Were the above lines wrapped by your posting (i.e. does each line really
start
> with a date)? Are all of the spaces above the same or are some of them
tabs to
> separate fields?
>
>         Ed.

The above lines were wrapped by my posting (i.e. each line really
start with a date).
There are tabs and spaces.
Thank you all for your solutions!
 




 8 Posts in Topic:
remove extra numeric field
wong_powah@[EMAIL PROTECT  2008-01-05 07:21:38 
Re: remove extra numeric field
Ed Morton <morton@[EMA  2008-01-05 10:01:01 
Re: remove extra numeric field
Ed Morton <morton@[EMA  2008-01-08 09:16:57 
Re: remove extra numeric field
Janis Papanagnou <Jani  2008-01-05 17:12:00 
Re: remove extra numeric field
loki harfagr <loki@[EM  2008-01-05 17:59:25 
Re: remove extra numeric field
Ed Morton <morton@[EMA  2008-01-08 09:56:22 
Re: remove extra numeric field
wong_powah@[EMAIL PROTECT  2008-01-08 19:22:23 
Re: remove extra numeric field
Ed Morton <morton@[EMA  2008-01-08 22:06:41 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Sep 4 23:47:00 CDT 2008.